Skip to content

[core] Update row-count defaults and rename global index file option - #10035

Open
leaves12138 wants to merge 2 commits into
apache:masterfrom
leaves12138:codex/reassign-skip-contiguous-20-billion
Open

leaves12138 wants to merge 2 commits into
apache:masterfrom
leaves12138:codex/reassign-skip-contiguous-20-billion

Conversation

@leaves12138

@leaves12138 leaves12138 commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Purpose

  • Increase the default value of data-evolution.reassign.skip-contiguous-row-count from 1 billion to 20 billion (20_000_000_000L).
  • Rename GLOBAL_INDEX_ROW_COUNT_PER_SHARD to GLOBAL_INDEX_ROW_COUNT_PER_FILE and change its configuration key to global-index.row-count-per-file. Increase the default from 100,000 to 25,000,000 rows. The legacy global-index.row-count-per-shard key remains a fallback; the new key takes precedence when both are set.
  • Update Flink/Spark consumers, PyPaimon configuration handling, validation messages, and documentation consistently.

Tests

  • Java 8: mvn -B -ntp -pl paimon-api -DwildcardSuites=none -Dtest=GlobalIndexOptionsTest test — 3 tests passed, covering the default, legacy fallback, and new-key precedence.
  • Linux / Java 11: mvn -B -ntp -pl paimon-flink/paimon-flink-common,paimon-spark/paimon-spark-common -am -Pflink1,spark3 -DskipTests compile — passed, including Checkstyle and Spotless checks.
  • PYTHONPATH=paimon-python python3 -m pytest -q paimon-python/pypaimon/tests/global_index_options_test.py paimon-python/pypaimon/tests/global_index_build_test.py::GenericIndexStreamingTest — 14 tests passed.
  • Flake8 on changed Python files and git diff --check — passed.

@leaves12138 leaves12138 changed the title [core] Increase row-id reassignment skip threshold to 20 billion [core] Update row-count defaults and rename global index file option Sep 21, 2026
@JingsongLi

Copy link
Copy Markdown
Contributor

Why modify this to file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants