Class RowDataUtils

    • Constructor Detail

      • RowDataUtils

        public RowDataUtils()
    • Method Detail

      • convertDataChangeEventToRowData

        public static List<org.apache.flink.table.data.RowData> convertDataChangeEventToRowData​(DataChangeEvent dataChangeEvent,
                                                                                                List<RecordData.FieldGetter> fieldGetters)
        Convert a DataChangeEvent to one or two RowData.

        An UPDATE is split into a DELETE built from the before-image followed by an INSERT built 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.