Skip to content

branch-4.0: [Bug](function) add ndv decimalv2 support #61546#61577

Open
github-actions[bot] wants to merge 1 commit intobranch-4.0from
auto-pick-61546-branch-4.0
Open

branch-4.0: [Bug](function) add ndv decimalv2 support #61546#61577
github-actions[bot] wants to merge 1 commit intobranch-4.0from
auto-pick-61546-branch-4.0

Conversation

@github-actions
Copy link
Contributor

Cherry-picked from #61546

This pull request focuses on improving support for the `DECIMALV2` data
type in aggregate functions and updating related regression tests to
ensure correctness. The most important changes are grouped below:

### Aggregate Function Support

* Added `TYPE_DECIMALV2` to the supported types for the
`approx_count_distinct` aggregate function in
`aggregate_function_approx_count_distinct.cpp`, enabling this function
to work with `DECIMALV2` columns.

### Regression Test Enhancements

* Updated the output in `test_decimalv2.out` to reflect higher precision
for `DECIMALV2` values, showing results with more decimal places to
match the new behavior.
* Added a new test case in `test_decimalv2.groovy` to verify the correct
behavior of the `ndv` (number of distinct values) aggregate function on
`DECIMALV2` columns.
@github-actions github-actions bot requested a review from yiguolei as a code owner March 20, 2026 10:14
@Thearas
Copy link
Contributor

Thearas commented Mar 20, 2026

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@dataroaring dataroaring reopened this Mar 20, 2026
@Thearas
Copy link
Contributor

Thearas commented Mar 20, 2026

run buildall

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants