Class RowDataUtils
- java.lang.Object
-
- org.apache.flink.cdc.connectors.iceberg.sink.utils.RowDataUtils
-
public class RowDataUtils extends Object
Utils for convertion ofRowDataandDataChangeEvent.
-
-
Constructor Summary
Constructors Constructor Description RowDataUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<org.apache.flink.table.data.RowData>convertDataChangeEventToRowData(DataChangeEvent dataChangeEvent, List<RecordData.FieldGetter> fieldGetters)Convert aDataChangeEventto one or twoRowData.
-
-
-
Method Detail
-
convertDataChangeEventToRowData
public static List<org.apache.flink.table.data.RowData> convertDataChangeEventToRowData(DataChangeEvent dataChangeEvent, List<RecordData.FieldGetter> fieldGetters)
Convert aDataChangeEventto one or twoRowData.An
UPDATEis split into aDELETEbuilt from the before-image followed by anINSERTbuilt from the after-image, rather than a single after-image row. Iceberg derives both the equality-delete key and the delete's target partition from the row passed to the writer; collapsing an UPDATE to just the after-image (as before) means a partition key change is never deleted from its old partition, leaving a stale duplicate behind.
-
-