Skip to content

[core] Improve BTree global index option handling#8137

Merged
JingsongLi merged 1 commit into
apache:masterfrom
leaves12138:btree-records-per-range-10m
Jun 6, 2026
Merged

[core] Improve BTree global index option handling#8137
JingsongLi merged 1 commit into
apache:masterfrom
leaves12138:btree-records-per-range-10m

Conversation

@leaves12138
Copy link
Copy Markdown
Contributor

@leaves12138 leaves12138 commented Jun 5, 2026

Purpose

This PR improves BTree global index option handling for both the default write path and manual global-index creation procedures.

Changes

  • Increase the default btree-index.records-per-range from 1,000,000 to 10,000,000 to reduce the number of BTree global index files generated by default.
  • Make Spark CreateGlobalIndexProcedure initialize user options from table.options() and let parsed procedure options override table options.
  • Make Flink CreateGlobalIndexProcedure use the same table-option inheritance and procedure-option override behavior.
  • Add unit tests for the BTree default and Spark/Flink option merge behavior.

Tests

  • mvn -pl paimon-common -am -Pfast-build -DfailIfNoTests=false -Dtest=BTreeIndexOptionsTest test
  • mvn -pl paimon-spark/paimon-spark-common -am -Pfast-build -DfailIfNoTests=false -Dtest=CreateGlobalIndexProcedureTest#testCreateUserOptionsUsesTableOptionsAndParsedOptionsOverride test
  • mvn -pl paimon-flink/paimon-flink-common -am -Pfast-build -DfailIfNoTests=false -Dtest=CreateGlobalIndexProcedureTest#testCreateUserOptionsUsesTableOptionsAndParsedOptionsOverride test

Note

A broader Spotless/Checkstyle run was blocked locally by snapshot dependency resolution for paimon-test-utils:1.5-20260605.010817-72.

@leaves12138 leaves12138 force-pushed the btree-records-per-range-10m branch from e8d58f5 to 34e99ff Compare June 5, 2026 13:55
@leaves12138 leaves12138 changed the title [core] Increase default BTree records per range [core] Improve BTree global index option handling Jun 5, 2026
@JingsongLi
Copy link
Copy Markdown
Contributor

I reviewed this PR as part of a pass over recent open non-draft Paimon PRs. I did not find any clear correctness, compatibility, or regression issue to flag from the current diff.

@JingsongLi JingsongLi merged commit 0969621 into apache:master Jun 6, 2026
12 checks passed
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