apache / iceberg

Apache Iceberg
https://iceberg.apache.org/
Apache License 2.0
6.49k stars 2.24k forks source link

Flink `write-parallelism` causes distribution-mode: RANGE to not work properly #11543

Open huyuanfeng2018 opened 1 week ago

huyuanfeng2018 commented 1 week ago

Apache Iceberg version

1.7.0 (latest release)

Query engine

Flink

Please describe the bug 🐞

When we set write-parallelism, if the parallelism of writing is different from the parallelism of tasks, iceberg write operator will be disconnected. In this case, distribution-mode: RANGE will have no effect.

image

We should throw this exception when the task jobgraph is generated

cc @stevenzwu @pvary

Willingness to contribute