Repository navigation
Conversation
No benchmark runs a TopK over a Parquet scan where the page index installs a row selection. ClickBench files have no page index, and the sort_pushdown queries have no WHERE clause. apache#27738 changes this path, so it needs a benchmark that shows the effect. The inexact data generator now writes the page index with 64 KiB data pages, which gives each 100K-row RG about five pages. The new q5 filters on 30 narrow l_orderkey ranges and runs ORDER BY l_orderkey DESC LIMIT 10. The page index prunes most pages of each surviving RG. Results of the existing queries do not change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
Rationale for this change
No benchmark runs a TopK over a Parquet scan where the page index installs a row selection. ClickBench files have no page index, and the
sort_pushdownqueries have noWHEREclause. #27738 lets runtime TopK row-group pruning and statistics reordering run with a row selection. This PR adds a benchmark that exercises that path, so #27738 can rebase on it and show the effect.What changes are included in this PR?
bench.sh: thesort_pushdown_inexactgenerator writes the page index with 64 KiB data pages. Each 100K-row RG gets about five pages.queries/sort_pushdown_inexact/q5.sql: a new query that filters on 30 narrowl_orderkeyranges and runsORDER BY l_orderkey DESC LIMIT 10.README.md: documents q5 and the page index.The query uses
ORof ranges, notIN. The page index skipsINlists with more than 20 values, and 20 keys give each RG fewer rows than theLIMIT.EXPLAIN ANALYZE)mainrow_groups_pruned_statisticspage_index_pages_prunedrow_groups_pruned_dynamic_filterWhat is the testing strategy for this PR?
This PR only changes benchmarks. I regenerated the data with
./bench.sh data sort_pushdown_inexactand ran q5 withdfbench sort-pushdown --sortedandpushdown_filters=true. The existing queries return the same results, because the page index does not change the data.Are there any user-facing changes?
No. Anyone with existing
sort_pushdown_inexactdata must delete it and regenerate it to get the page index.🤖 Generated with Claude Code