Skip to main content
This page describes configuration options for Iceberg catalogs and read/write operations in Flink.

Catalog Configuration

A catalog is created and named by executing the following query:

Global Properties

The following properties can be set globally and are not limited to a specific catalog implementation:

Hive Catalog

The following properties can be set if using the Hive catalog:

Hadoop Catalog

The following properties can be set if using the Hadoop catalog:

REST Catalog

The following properties can be set if using the REST catalog:

Read Options

Flink read options can be passed in multiple ways:

DataStream API

SQL Hints

Priority: Read option > Flink configuration > Table property

Available Read Options

Write Options

Flink write options can be passed when configuring the FlinkSink:

DataStream API

SQL Hints

Available Write Options

Range Distribution Statistics Type

  • Map: Collects accurate sampling count for every single key. Use for low cardinality scenarios (hundreds or thousands)
  • Sketch: Constructs uniform random sampling via reservoir sampling. Use for high cardinality scenarios (millions)
  • Auto: Starts with Map statistics. If cardinality exceeds 10,000, switches to Sketch automatically

Range Distribution Sort Key Base Weight

If sort order contains partition columns, each sort key maps to one partition and data file. This relative weight avoids placing too many small files for sort keys with low traffic. Value of 0.02 means each key has a base weight of 2% of the targeted traffic weight per writer task.
This is only applicable to StatisticsType.Map for low-cardinality scenarios.

Examples

Configure Batch Read

Configure Streaming Read

Configure Write

Next Steps

Queries

Learn about reading data with Flink

Writes

Learn about writing data with Flink