test(datafusion): add Lumina index build procedure#392
Open
liujiwen-up wants to merge 1 commit into
Open
Conversation
QuakeWang
reviewed
Jun 17, 2026
| CALL sys.rollback_to_timestamp(table => 'paimon.my_db.my_table', timestamp => 1234567890000); | ||
| ``` | ||
|
|
||
| ### create_lumina_index |
Member
There was a problem hiding this comment.
Nit: the procedure also accepts the optional index_type argument, while the docs only mention options. It may be worth documenting the default and valid values here so the SQL surface matches the implemented arguments.
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
Linked PR: #347
Expose the core Lumina index build capability through DataFusion SQL so users can build a Lumina global vector index with a
CALL sys.create_lumina_index(...)statement, then query it through the existingvector_searchtable function.Brief change log
CALL sys.create_lumina_index(table => ..., index_column => ...)to DataFusion procedures.index_typeand comma-separatedoptions => 'key=value,...'arguments.index_column, invalid index type, and malformed options.$table_indexes, and runsvector_search.vortexfeature after installing the Lumina native library.Tests
cargo fmt: passedcargo check -p paimon-datafusion: passedcargo test -p paimon-datafusion --test procedures create_lumina_index: passed, 3 testscargo test -p paimon-datafusion --features vortex vector_search_tests::test_lumina_build_then_vector_search_query -- --ignored --exact --list: passed, verifies the ignored native E2E test compiles and is discoverableAPI and Format
Adds a DataFusion SQL procedure surface for an existing core Lumina index build API. No storage format, manifest format, or public Rust API changes are introduced by this PR.
Documentation
Updated
docs/src/sql.mdwith thecreate_lumina_indexprocedure and optional options example.