Repository navigation
Commit ebf0625
authored
feat: Support duration type in approx_distinct (apache#23291)
## 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 `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.1 parent 6a0e76e commit ebf0625
2 files changed
Lines changed: 42 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
781 | 782 | | |
782 | 783 | | |
783 | 784 | | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
784 | 797 | | |
785 | 798 | | |
786 | 799 | | |
| |||
848 | 861 | | |
849 | 862 | | |
850 | 863 | | |
| 864 | + | |
851 | 865 | | |
852 | 866 | | |
853 | 867 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2005 | 2005 | | |
2006 | 2006 | | |
2007 | 2007 | | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
| 2013 | + | |
| 2014 | + | |
| 2015 | + | |
| 2016 | + | |
| 2017 | + | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
| 2026 | + | |
| 2027 | + | |
| 2028 | + | |
| 2029 | + | |
| 2030 | + | |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
| 2034 | + | |
2008 | 2035 | | |
2009 | 2036 | | |
2010 | 2037 | | |
| |||
0 commit comments