Class RowDataToAvroConverters

java.lang.Object
org.apache.iceberg.flink.formats.avro.RowDataToAvroConverters

@Internal public class RowDataToAvroConverters extends Object
Tool class used to convert from RowData to Avro GenericRecord.

This class is adapted in Iceberg to add support for nanosecond precision timestamps (FLINK-39251). Once that ticket is resolved in Flink, this custom converter may be removed.

  • Method Details

    • createConverter

      public static RowDataToAvroConverters.RowDataToAvroConverter createConverter(org.apache.flink.table.types.logical.LogicalType type)
      Creates a runtime converter according to the given logical type that converts objects of Flink Table & SQL internal data structures to corresponding Avro data structures.
    • createConverter

      public static RowDataToAvroConverters.RowDataToAvroConverter createConverter(org.apache.flink.table.types.logical.LogicalType type, boolean legacyTimestampMapping)