xudong963 commented on issue #18860: URL: https://github.com/apache/datafusion/issues/18860#issuecomment-3563442093
> the parquet reader will stop (and not fetch any more row groups) once the limit is hit. There is a picture from snowflake, we can set the partition in the pic as row group. The filter is `WHERE species LIKE'Alpine%' AND s >= 50` <img width="469" height="291" alt="Image" src="https://github.com/user-attachments/assets/0fc77177-eda4-467a-835b-c6952f4077d9" /> rg1 -> pruned, rg2, rg4 -> partially matched, rg3 fully matched. We need to read rg2, rg3, then get the satisfied rows from rg3. But if we have limit pruning and a fully matched rg definition, I can directly fetch limit rows from rg3. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
