Repository navigation
[Python] Delegate Ray search through backend task execution - #10724
Draft
JingsongLi wants to merge 5 commits into
Draft
JingsongLi wants to merge 5 commits into
JingsongLi wants to merge 5 commits into
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
Depends on apache/paimon-rust#1191. Draft until its new Plan APIs reach Rust main. Current Python master also uses the writer API from apache/paimon-rust#1188.
Keep Ray as a scheduler while Python or Native execution owns vector, batch-vector, full-text and hybrid search semantics.
Changes
SearchTaskExecutorcontract and optionalexecutoronread_plan/read_batch_plan, plusHybridSearchBuilder.execute(executor=...).execution/python/read/search. Ray uses public scan/read/execute methods and a generic bounded scheduler without importing either backend.VectorScanPlan(splits, snapshot=None)/FullTextScanPlan(splits, snapshot=None). Snapshot and six concrete split types cross the public binding API as objects; metadata codecs remain private to adapters and pickle. Transported scans/readers recreate Native adapters without initializing Python execution.execute()method while preserving existing public PyPaimon search methods. Update direct SDK tests and old plan-context assertions to the typed source-plan contract.Validation
The Native extension was not rebuilt or installed. Native CI continues to build Rust main; there are no SDK-version probes or Python execution fallbacks to bypass this dependency.