Skip to content

[core] Improve BTree global index option handling#8137

Open
leaves12138 wants to merge 1 commit into
apache:masterfrom
leaves12138:btree-records-per-range-10m
Open

[core] Improve BTree global index option handling#8137
leaves12138 wants to merge 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
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.

1 participant