Skip to content

feat: Support List/ListView types in approx_distinct#23443

Open
mkleen wants to merge 2 commits into
apache:mainfrom
mkleen:list_approx_distinct
Open

feat: Support List/ListView types in approx_distinct#23443
mkleen wants to merge 2 commits into
apache:mainfrom
mkleen:list_approx_distinct

Conversation

@mkleen

@mkleen mkleen commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

  • Support the Arrow types List LargeList, FixedSizeList, ListView, LargeListView type for approx_distinct

What changes are included in this PR?

  • Enable HLLAccumulator and HllGroupsAccumulator to support List LargeList, FixedSizeList, ListView, LargeListView
  • Tests for the non-grouped and grouped path as part of aggregate.slt

Are these changes tested?

Yes

Are there any user-facing changes?

Yes, approx_distinct supports now List LargeList, FixedSizeList, ListView, LargeListView but no breaking changes.

@github-actions github-actions Bot added sqllogictest SQL Logic Tests (.slt) functions Changes to functions implementation labels Jul 10, 2026
@mkleen mkleen marked this pull request as ready for review July 10, 2026 08:56

@nuno-faria nuno-faria left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mkleen, double checked with DuckDB.

@Jefffrey Jefffrey left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably could include largelist + fixedsizelist (maybe even the view variants) in this PR

@mkleen mkleen changed the title feat: Support List type in approx_distinct feat: Support List types in approx_distinct Jul 11, 2026
@mkleen mkleen force-pushed the list_approx_distinct branch from 25cb2b1 to 53919e3 Compare July 11, 2026 06:33
@mkleen mkleen requested review from Jefffrey and nuno-faria July 11, 2026 06:33
@mkleen

mkleen commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

probably could include largelist + fixedsizelist (maybe even the view variants) in this PR

Yes, good idea. I added them.

@mkleen mkleen changed the title feat: Support List types in approx_distinct feat: Support List/ListView types in approx_distinct Jul 11, 2026
@mkleen

mkleen commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the review @Jefffrey @nuno-faria

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

Labels

functions Changes to functions implementation sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants