JingsongLi opened a new pull request, #8277:
URL: https://github.com/apache/paimon/pull/8277

   ## Summary
   
   Refine the vector search read APIs so single-vector and batch-vector reads 
use separate contracts and implementations. This keeps `VectorRead` 
single-vector only, moves batch execution behind `BatchVectorRead`, and aligns 
Python with the same base + sibling read architecture.
   
   ## Changes
   
   - Add `BatchVectorRead` / `BatchVectorReadImpl` and make 
`BatchVectorSearchBuilder` create batch readers directly.
   - Move shared Java vector read helpers into `AbstractVectorRead`, while 
keeping `VectorReadImpl` on `float[] vector` and `BatchVectorReadImpl` on 
`float[][] vectors`.
   - Update Spark vector read construction to pass a single vector and remove 
obsolete constructors.
   - Align Python vector search reads with Java by introducing 
`AbstractVectorSearchReadImpl` and `BatchVectorSearchRead`, with separate 
single and batch implementations.
   
   ## Testing
   
   - `git diff --check`
   - `python -m pytest 
paimon-python/pypaimon/tests/vector_search_filter_test.py -q`
   - `mvn -pl paimon-core,paimon-spark/paimon-spark-common -am -Pfast-build 
-DskipTests compile`
   - `mvn -pl paimon-core -am -Pfast-build -DfailIfNoTests=false 
-Dtest=VectorSearchBuilderTest#testBatchVectorSearch test`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to