Add hybrid search support for DataFusion#473
Merged
JingsongLi merged 2 commits intoJul 7, 2026
Merged
Conversation
leaves12138
approved these changes
Jul 7, 2026
leaves12138
left a comment
There was a problem hiding this comment.
LGTM. Reviewed the hybrid search builder, DataFusion table function parsing/execution path, fulltext feature gate, docs, and tests. Verified locally with targeted unit/integration checks and fulltext feature compilation.
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.
Summary
Adds hybrid search support to paimon-rust by combining multiple search routes with Paimon-compatible rankers. Exposes a Spark-style
hybrid_searchtable function in the DataFusion integration; vector-only hybrid search works without thefulltextfeature, while full-text routes still require it.Changes
HybridSearchBuilderwith vector routes, optional full-text routes, andrrf,weighted_score, andmrrranking strategies.hybrid_search(...)table function using Spark-stylearray(named_struct(...))route definitions.hybrid_searchby default with DataFusion catalogs; keepfull_text_searchand full-text hybrid route execution behind thefulltextfeature.Testing
cargo fmt --allcargo test -p paimon hybrid_search_builder -- --nocapturecargo test -p paimon --features fulltext hybrid_search_builder -- --nocapturecargo test -p paimon-datafusion --test read_tables hybrid_search_tests::test_hybrid_search_multiple_vector_routes_spark_shape -- --nocapturecargo test -p paimon-datafusion --features fulltext --test read_tables hybrid_search_tests::test_hybrid_search_multiple_vector_routes_spark_shape -- --nocapturecargo test -p paimon --features fulltext full_text_search_builder -- --nocapturecargo test -p paimon-datafusion --features fulltext --test read_tables fulltext_tests::test_full_text_search_paimon -- --nocapturecargo test -p paimon-datafusion --test read_tables vector_search_tests::test_vector_search_java_vindex_table -- --nocapturecargo test -p paimon vector_search::tests::test_vector_search_clone_preserves_include_row_ids -- --nocapturecargo clippy -p paimon --lib -- -D warningscargo clippy -p paimon --features fulltext --lib -- -D warningscargo clippy -p paimon-datafusion --lib --tests -- -D warningscargo clippy -p paimon-datafusion --features fulltext --lib --tests -- -D warningsNotes
The DataFusion table function currently returns the matched table rows. Exposing a Spark-compatible metadata score column can be added separately once scan output metadata columns are supported.