You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sumMapFiltered aggregate function wrong result starting from 23.11 #58741
do we have the same problem here wit std::map<Field, ...>
Nice question. And yes, but in this case the bug was already present before the the refactor (since forever, or at least since 20.8 which is the oldest I have around):
SELECT sumMap([x], [y])
FROM values('x Float64, y Float64', (4, 1), (1, 2.3), (nan, inf), (6.7, 3), (4, 4), (5, 1))
Query id: 34f31c01-cd59-45d1-a7d0-a8cc93e70f8e
┌─sumMap(array(x), array(y))─┐
│ ([1,4,5,6.7],[inf,5,1,3]) │
└────────────────────────────┘
1 row in set. Elapsed: 0.002 sec.
Activity
Algunenano commentedon Jan 18, 2024
This was introduced in #56350.
std::set does not work
Algunenano commentedon Jan 18, 2024
Correction:
std::set<DB::Field>does not work as expected because it does not deal withNaNcorrectly.davenger commentedon Jan 18, 2024
@Algunenano do we have the same problem here wit
std::map<Field, ...>https://github.com/ClickHouse/ClickHouse/pull/56350/files#diff-92770a5665f326e3531a4118ff65c99e9c75524e0fad44060835794ebfce168dR40 ?Algunenano commentedon Jan 19, 2024
Nice question. And yes, but in this case the bug was already present before the the refactor (since forever, or at least since 20.8 which is the oldest I have around):
I have zero trust in this function TBH