Skip to content

duckdb: report distinct count based on min/max - #11130

Merged
myrrc merged 2 commits into
developfrom
myrrc/duckdb-ndv-hack
Nov 3, 2026
Merged

myrrc merged 2 commits into
developfrom
myrrc/duckdb-ndv-hack

Conversation

@myrrc

@myrrc myrrc commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

DuckDB's JOIN planner overstates cardinality for table functions which push down
filters (duckdb/duckdb#28099). Hack this until upstream
PR is merged by reporting distinct count as MAX - MIN + 1 based on min/max
statistics.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/fix A bug fix ext/duckdb Relates to the DuckDB integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DuckDB on Vortex fails the TPC-DS nightly since the tables were split into files

2 participants