Updated on 2026-11-06 GMT+08:00

Iceberg Configurations and Types

WITH Parameters

This section describes how to configure parameters for the Flink connector to read and write Iceberg tables. By configuring these parameters, you can control the connection and read/write behavior between Flink and Iceberg table formats to meet data read/write requirements for various service scenarios.

  • Source parameters
    Table 1 Source parameters

    Parameter

    Mandatory (Yes/No)

    Type

    Default Value

    Value Range

    Description

    streaming

    No

    Boolean

    false

    true, false

    Specifies whether to read the Iceberg table in streaming mode.

    The value true enables streaming read, which continuously monitors new snapshots and outputs incremental data. The value false enables batch read, which only reads all data from the current snapshot. Choose based on the service scenario. In real-time ETL scenarios, set this parameter to true.

    start-snapshot-id

    No

    Long

    None

    Valid snapshot ID

    Specifies the start snapshot ID for streaming read.

    This parameter is valid only when streaming is set to true. If configured, incremental data is read from the snapshot after this one. If not configured, full data is read from the earliest available snapshot. Ensure that the snapshot ID exists and has not expired.

    end-snapshot-id

    No

    Long

    None

    Valid snapshot ID

    Specifies the end snapshot ID for streaming read.

    After the snapshot is read, the job automatically ends. This parameter is valid only when streaming is set to true. Ensure that the value of end-snapshot-id is greater than that of start-snapshot-id.

    split-size

    No

    Long

    128 MB

    Positive integer (byte count)

    Specifies the target size of each split during read.

    Iceberg splits a data file into multiple splits of this size for parallel read. Adjust the value based on the data volume and parallelism. Splits that are too small cause excessive scheduling overhead, while splits that are too large lead to data skew.

  • Sink parameters
    Table 2 Sink parameters

    Parameter

    Mandatory (Yes/No)

    Type

    Default Value

    Value Range

    Description

    write-format

    No

    String

    parquet

    parquet, orc, avro

    Specifies the format of the file to be written to the Iceberg table.

    • parquet indicates the columnar storage format with high compression ratio and good query performance.
    • orc indicates the Optimized Row Columnar format.
    • avro indicates the row-based storage format.

    Select a value based on the query engine and performance requirements.

    commit.interval

    No

    Duration

    1 min

    Valid duration, for example, 30 seconds or 5 minutes.

    Specifies the commit interval for streaming writes.

    The buffered data files are committed as a new Iceberg snapshot at the specified interval. When configuring this parameter, you need to balance data visibility and write performance. Short intervals may produce too many small files, while long intervals may result in high data latency.

    write.target-file-size-bytes

    No

    Long

    128 MB

    Positive integer (byte count)

    Specifies the target file size for writes.

    A new file is rolled out when the written data volume reaches this threshold. The configuration needs to be adjusted based on storage and query performance requirements. Small files may affect query efficiency, while large files may increase write latency.

    upsert-enabled

    No

    Boolean

    false

    true, false

    Specifies whether to enable the UPSERT write mode.

    After enabled, data with the same primary key will be updated instead of being appended. Ensure that the primary key has been defined for the Iceberg table. Otherwise, an error will be reported during data writing (subject to the actual product support).

    compression-codec

    No

    String

    zstd

    uncompressed, snappy, zstd, gzip

    Specifies the compression codec for writing data files.

    Different compression algorithms offer different trade-offs between compression ratio and speed. zstd provides a good balance. Select a value based on the storage cost and query performance requirements.

Data Type Mapping

Flink

Iceberg

boolean

boolean

tinyint

integer

smallint

integer

integer

integer

bigint

long

float

float

double

double

char

string

varchar

string

string

string

binary

binary

varbinary

fixed

decimal

decimal

date

date

time

time

timestamp

timestamp without timezone

timestamp_ltz

timestamp with timezone

array

list

map

map

multiset

map

row

struct