Uh oh!
There was an error while loading. Please reload this page.
Support Avg distinct for float64 type - #15413
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
… and remove unused sum_distinct module
Omega359
commented
Mar 25, 2025
the sqlite tests need updating prior to this issue being pushed to main. Confirmed test failures, here are a few examples: |
alamb
commented
Mar 28, 2025
I merged up from main and will use the new github action to run extended tests |
alamb
commented
Mar 28, 2025
Run extended tests |
Omega359
commented
Mar 28, 2025
I see it did trigger but I somehow was expecting feedback in the comments |
Omega359
commented
Mar 28, 2025
Looks like it failed? https://github.com/apache/datafusion/actions/runs/14139465370/job/39618247236 |
Omega359
commented
Apr 4, 2025
I regenerated the sqlite tests again and I think an issue I'm seeing with them is actually caused or triggered by this PR. Here is an example: query error DataFusion error: Arrow error: Invalid argument error: number of columns\(1\) must match number of fields\(2\) in schema
SELECT84*+-61*+AVG ( DISTINCT ( 70 ) ) AS col2 FROM tab4 WHERE ( NULL ) BETWEEN NULLAND col3If this is in fact a bug not caused by this PR a new issue should be filed. I myself do not have the time to diagnosis the cause of this unfortunately. |
qazxcdswe123
commented
Apr 5, 2025
sadly I'm working on my undergrad thesis project at this time and do not have time to investigate this either 😢 , might be back around mid april |
alamb
commented
Apr 6, 2025
Good luck with your project / thesis! |
Which issue does this PR close?
avg(distinct)support #2408Rationale for this change
The original PR is splited into 2 parts, one for float64 type and one for float64+decimal type
What changes are included in this PR?
DistinctSumAccumulatorto common so that it can be used inFloat64DistinctAvgAccumulatorFloat64DistinctAvgAccumulatorusingDistinctSumAccumulatoraggregate.sltAre these changes tested?
aggregate.sltAre there any user-facing changes?
No