Skip to content

[Cherry-pick] Add support for dictionary for approx_distinct (#24646) - #177

Merged
Rich-T-kid merged 1 commit into
branch-55from
richard.baah/cherry-pick-dict-branch-55
Sep 4, 2026
Merged

[Cherry-pick] Add support for dictionary for approx_distinct (#24646)#177
Rich-T-kid merged 1 commit into
branch-55from
richard.baah/cherry-pick-dict-branch-55

Conversation

@Rich-T-kid

@Rich-T-kid Rich-T-kid commented Sep 4, 2026

Copy link
Copy Markdown

Which issue does this PR close?

Rationale for this change

  • Support the Arrow type Dictionary for approx_distinct

What changes are included in this PR?

  • Enable HLLAccumulator and HllGroupsAccumulator to support Dictionary
  • Tests

Are these changes tested?

Yes

Are there any user-facing changes?

Yes, approx_distinct supports now Dictionary but no breaking changes.

## Which issue does this PR close?

- Relates to apache#22989 but does
not close it. More types are coming.


## Rationale for this change

- Support the Arrow type `Dictionary` for `approx_distinct`

## What changes are included in this PR?

- Enable `HLLAccumulator` and `HllGroupsAccumulator` to support
`Dictionary`
- Tests 

## Are these changes tested?

Yes

## Are there any user-facing changes?

Yes, `approx_distinct` supports now `Dictionary` but no breaking
changes.
@Rich-T-kid Rich-T-kid changed the title Add support for dictionary for approx_distinct (#24646) Cherry-pick Add support for dictionary for approx_distinct (#24646) Sep 4, 2026
@Rich-T-kid Rich-T-kid changed the title Cherry-pick Add support for dictionary for approx_distinct (#24646) [Cherry-pick] Add support for dictionary for approx_distinct (#24646) Sep 4, 2026
@codecov-commenter

codecov-commenter commented Sep 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.15%. Comparing base (525df19) to head (3697a5b).

Additional details and impacted files
@@            Coverage Diff             @@
##           branch-55     #177   +/-   ##
==========================================
  Coverage      81.14%   81.15%           
==========================================
  Files           1110     1110           
  Lines         386427   386489   +62     
  Branches      386427   386489   +62     
==========================================
+ Hits          313578   313642   +64     
- Misses         54362    54363    +1     
+ Partials       18487    18484    -3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Rich-T-kid
Rich-T-kid merged commit 3a95ddd into branch-55 Sep 4, 2026
68 of 70 checks passed
@Rich-T-kid
Rich-T-kid deleted the richard.baah/cherry-pick-dict-branch-55 branch September 4, 2026 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants