wangzhigang1999 opened a new issue, #11422: URL: https://github.com/apache/paimon/issues/11422
### Search before asking - [x] I searched in the [issues](https://github.com/apache/paimon/issues) and found nothing similar. ### Motivation On a Data Evolution table, a search can return no candidates, or the caller can request only row IDs and scores. For example: ```python table.search(vector).select(["_ROW_ID"]).with_score().order_by_score().limit(10).to_ray() ``` When no further filtering or payload lookup is needed, PyPaimon already has the information to build the result on the driver. Today it still schedules Ray Data work to attach scores and, when requested, sort the rows. Even an empty result goes through result processing just to return a Dataset with the right schema. ### Solution Build the final Arrow table on the driver when the candidate set is empty or the query qualifies for the existing metadata-only path. Return it as a materialized Ray Dataset. Keep nonempty payload lookups distributed, including those that only become empty after filtering. ### Anything else? The metadata-only path already avoids reading payload columns (#10005). This proposal skips the remaining Ray Data operators in `to_ray()`; it does not change read parallelism for payload lookups (#11410). ### Are you willing to submit a PR? - [x] I'm willing to submit a PR! -- 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]
