Repository navigation
[core] Add a Java-compatible R-tree global index for GEOMETRY - #1457
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Add a Rust reader and writer for the packed R-tree global index introduced in apache/paimon#11238. Tables using the native planar
GEOMETRYtype can build the same V1 files and use their envelopes for filtering.Brief change log
bbox_intersects(shape, min_x, min_y, max_x, max_y)DataFusion function and push constant bounds through the native predicate API. The rectangle includes its boundary. The index also answersIS NULLandIS NOT NULL, including the distinction between null and empty geometry. FAST searches indexed coverage. FULL and DETAIL also evaluate uncovered rows.Tests
API and Format
The Rust table builder and DataFusion's create/drop global index procedures accept
rtree. The native filter isPredicateBuilder::bbox_intersects. The index operates on planar XY envelopes in the column's coordinate system. Both engines use the existing R-tree V1 file format.Documentation
Updated the SQL and automatic maintenance guides with usage, search modes, build settings, and read limits.