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

Paimon Table Properties

When creating or modifying a Paimon table, you can use TBLPROPERTIES to set related parameters. Paimon table properties are classified into Core, Read, Write, and Compaction properties.

Core Properties

Table 1 Core properties

Property

Default Value

Description

bucket

-

Number of bucket partitions for even data distribution.

primary-key

-

Primary key column. Use commas (,) to separate multiple columns. Primary key tables support update and delete operations.

partition

-

Partition column. Use commas (,) to separate multiple columns.

changelog-producer

none

Changelog producer type. The options are none, input, lookup, and full-compaction.

write-mode

auto

Write mode. The options are auto and append-only.

merge-engine

deduplicate

Merge engine of the primary key table. The value can be deduplicate, partial-update, aggregation, or first-row.

format

orc

Data file format. The options are orc and parquet.

target-file-size

128 MB

Size of the target data file.

file.format

orc

File storage format.

file.compression

zlib(orc)/snappy(parquet)

File compression algorithm.

Read Properties

Table 2 Read properties

Property

Default Value

Description

read.batch-size

1024

Batch size (number of rows) during reading, which controls how many rows are read from the file each time.

read.parquet.vectorization.enabled

false

Whether to enable vectorized reading for Parquet files.

read.orc.vectorization.enabled

false

Whether to enable vectorized reading for ORC files.

read.cache-enabled

true

Whether to enable the read caching for data files and manifest files to improve query performance.

read.cache.max-memory

256 MB

Maximum memory usage of the read cache.

read.scan.plan-fetch-batch-size

500

Number of manifest files fetched in batches during scan planning.

read.streaming.enabled

false

Whether to enable the streaming read mode for Flink streaming consumption scenarios.

read.streaming.time-gap

1s

Interval between two scans during streaming read.

Write Properties

Table 3 Write properties

Property

Default Value

Description

write.parallelism

1

Parallelism for write operations.

write.batch-size

500

Number of rows per batch for writing.

write.auto-compaction

false

Whether to automatically trigger a compaction after data is written.

write.compaction.min-num-messages

1000

Minimum number of messages required for triggering asynchronous compaction.

write.compaction.max-size-amplification

200

Maximum space amplification ratio for compaction, in percentage.

sink.parallelism

-

Parallelism of the Flink Sink operator.

sink.commit.max-retries

10

Maximum number of retries for commits.

Compaction Properties

Table 4 Compaction properties

Property

Default Value

Description

compaction.min.file-num

5

Minimum number of files required for triggering a compaction.

compaction.max.file-num

50

Maximum number of files that can be merged in a single compaction.

compaction.max.size-amplification

200

Maximum space amplification ratio for compaction, in percentage. Compaction is triggered if the value is exceeded.

compaction.max.output.file-num

5

Maximum number of output files after compaction.

num-sorted-run.compaction-trigger

5

Number of LSM-tree levels that trigger sorted run merging.

num-sorted-run.stop-trigger

50

Threshold for the number of sorted runs that stop writing data and wait for compaction.

compaction.optimization-interval

-

Interval for asynchronous compaction optimization.

sort-engine

loser-tree

Sorting engine type. The value can be loser-tree or janitor.