Skip to content

feat: Support duration type in approx_distinct#23291

Merged
Jefffrey merged 4 commits into
apache:mainfrom
mkleen:duration_approx_distinct
Jul 6, 2026
Merged

feat: Support duration type in approx_distinct#23291
Jefffrey merged 4 commits into
apache:mainfrom
mkleen:duration_approx_distinct

Conversation

@mkleen

@mkleen mkleen commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

  • Support the Duration type for approx_distinct
  • The Arrow type Duration can be directly supported for NumericHLLAccumulator and HllGroupsAccumulator

What changes are included in this PR?

  • Enable NumericHLLAccumulator and HllGroupsAccumulator to support Duration
  • 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 Duration but no breaking changes.

@github-actions github-actions Bot added sqllogictest SQL Logic Tests (.slt) functions Changes to functions implementation labels Jul 2, 2026
@mkleen mkleen force-pushed the duration_approx_distinct branch 2 times, most recently from 4749a7d to 87049df Compare July 2, 2026 13:35
@mkleen mkleen force-pushed the duration_approx_distinct branch from 87049df to 98a25ce Compare July 2, 2026 13:49
@mkleen mkleen marked this pull request as ready for review July 2, 2026 17:32
@mkleen mkleen changed the title feat: Support Duration type in approx_distinct feat: Support duration type in approx_distinct Jul 3, 2026
Comment thread datafusion/functions-aggregate/benches/approx_distinct.rs Outdated
Comment thread datafusion/functions-aggregate/src/approx_distinct.rs Outdated
@mkleen mkleen requested a review from Jefffrey July 6, 2026 07:23
@Jefffrey Jefffrey added this pull request to the merge queue Jul 6, 2026
@Jefffrey

Jefffrey commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

thanks @mkleen

@mkleen

mkleen commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

@Jefffrey Thanks for the review!

Merged via the queue into apache:main with commit ebf0625 Jul 6, 2026
36 checks passed
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.

2 participants