wangzhigang1999 opened a new pull request, #11423: URL: https://github.com/apache/paimon/pull/11423
### Purpose Closes #11422 In `read_search_result()`, finish empty and metadata-only Data Evolution search results on the driver and return them with `ray.data.from_arrow()`. For an empty candidate set, start with the reader's output schema. For a metadata-only query, use the candidate row IDs. Both paths reuse `_finish_search_result()` for score projection and ordering. Nonempty payload lookups still read and finish batches on Ray workers and use the existing distributed sort when requested. The primary-key path is unchanged. In a 12-round comparison on Ray 2.58.0 against `88792ed0d1`, median lookup time for a metadata-only Top-10 fell from 57.5 to 20.2 ms. For an empty result it fell from 46.7 to 19.4 ms. These timings cover Dataset construction through `take_all()` on a fixed OSS snapshot; they exclude candidate search. ### Tests Extended two existing Ray search tests to check that empty and metadata-only queries return a materialized Dataset. The tests also check the empty result's projected schema and compare ordered metadata rows and scores with the local result. `python -m pytest -q pypaimon/tests/ray*search*test.py` (from `paimon-python/`): 214 passed. -- 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]
