Skip to content

feat: Support interval type in approx_distinct#23234

Merged
alamb merged 1 commit into
apache:mainfrom
mkleen:interval_approx_distinct
Jun 30, 2026
Merged

feat: Support interval type in approx_distinct#23234
alamb merged 1 commit into
apache:mainfrom
mkleen:interval_approx_distinct

Conversation

@mkleen

@mkleen mkleen commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

  • Support the Interval type for approx_distinct

  • The Arrow type Interval in the YearMonth, DayTime and MonthDayNano variant can be directly supported for NumericHLLAccumulator and HllGroupsAccumulator

What changes are included in this PR?

  • Enable NumericHLLAccumulator and HllGroupsAccumulator to support Interval
  • Tests for the non-grouped and grouped path as part of approx_distinct.rst and aggregate.slt
  • Benchmarks

Are these changes tested?

Yes

Are there any user-facing changes?

Yes, approx_distinct supports now Interval but no breaking changes.

@github-actions github-actions Bot added sqllogictest SQL Logic Tests (.slt) functions Changes to functions implementation labels Jun 29, 2026
@mkleen mkleen force-pushed the interval_approx_distinct branch from 91b2c12 to 081ef25 Compare June 29, 2026 09:58
@mkleen mkleen marked this pull request as ready for review June 29, 2026 11:06
@mkleen

mkleen commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

@Jefffrey Thanks for the review!

@alamb alamb added this pull request to the merge queue Jun 30, 2026
Merged via the queue into apache:main with commit 8d41abe Jun 30, 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.

3 participants