@PublicEvolving public static interface SupportsRowLevelUpdate.RowLevelUpdateInfo
Modifier and Type | Method and Description |
---|---|
default SupportsRowLevelUpdate.RowLevelUpdateMode |
getRowLevelUpdateMode()
Planner will rewrite the update statement to query base on the
SupportsRowLevelUpdate.RowLevelUpdateMode , keeping the query of update unchanged by default(in `UPDATED_ROWS`
mode), or changing the query to union the updated rows and the other rows (in `ALL_ROWS`
mode). |
default Optional<List<Column>> |
requiredColumns()
The required columns by the sink to perform row-level update.
|
default Optional<List<Column>> requiredColumns()
default SupportsRowLevelUpdate.RowLevelUpdateMode getRowLevelUpdateMode()
SupportsRowLevelUpdate.RowLevelUpdateMode
, keeping the query of update unchanged by default(in `UPDATED_ROWS`
mode), or changing the query to union the updated rows and the other rows (in `ALL_ROWS`
mode).
Take the following SQL as an example:
UPDATE t SET x = 1 WHERE y = 2;
If returns SupportsRowLevelUpdate.RowLevelUpdateMode.UPDATED_ROWS
, the sink will get the update after
rows which match the filter [y = 2].
If returns SupportsRowLevelUpdate.RowLevelUpdateMode.ALL_ROWS
, the sink will get both the update
after rows which match the filter [y = 2] and the other rows that don't match the filter
[y = 2].
Note: All rows will have RowKind#UPDATE_AFTER when RowLevelUpdateMode is UPDATED_ROWS, and RowKind#INSERT when RowLevelUpdateMode is ALL_ROWS.
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.