Dandandan opened a new issue, #15698: URL: https://github.com/apache/datafusion/issues/15698
### Is your feature request related to a problem or challenge? In the PR https://github.com/apache/datafusion/pull/15697 we added support for filtering input values early on to speed up TopK execution. The current code uses only the first value as filter, but we could extend the expression to filter out multiple columns (either all of the columns or a prefix). ### Describe the solution you'd like We can write the filter that respects lexical ordering as: ```col[0] < threshold[0] || col[0] = threshold[0] && col[1] < threshold[1] || ...``` ### Describe alternatives you've considered _No response_ ### Additional context _No response_ -- 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: github-unsubscr...@datafusion.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org