You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "Dandandan (via GitHub)" <gi...@apache.org> on 2025/06/17 19:30:45 UTC
[I] Only update topk filter when updated filter is more selective [datafusion]
Dandandan opened a new issue, #16432:
URL: https://github.com/apache/datafusion/issues/16432
Hm @adriangb another thing I wondered is `update_filter` does seem to take only the heap of the current partition into account, as in TopK (currently at least) each partition has it's own heap (of k items).
Perhaps we can compare against the current filter and only update the expression if it is greater / more selective?
_Originally posted by @Dandandan in https://github.com/apache/datafusion/issues/15770#issuecomment-2981524048_
--
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-unsubscribe@datafusion.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] Only update topk filter when updated filter is more selective [datafusion]
Posted by "adriangb (via GitHub)" <gi...@apache.org>.
adriangb closed issue #16432: Only update topk filter when updated filter is more selective
URL: https://github.com/apache/datafusion/issues/16432
--
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-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] Only update topk filter when updated filter is more selective [datafusion]
Posted by "Dandandan (via GitHub)" <gi...@apache.org>.
Dandandan commented on issue #16432:
URL: https://github.com/apache/datafusion/issues/16432#issuecomment-2981628184
The filter is shared between `TopK` instances, so it would benefit from a higher selectivity from other partitions and being earlier to filter out more rows.
--
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-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org