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
grouping function doesn't work anymore on a distributed table when allow_experimental_analyze=1 #71270
Query using grouping function on top of a distributed table are not working anymore.
They are returning this error
Received exception from server (version 24.8.5):
Code: 1. DB::Exception: Received from localhost:9000. DB::Exception: Method executeImpl is not supported for 'grouping' function. (UNSUPPORTED_METHOD)
CREATETABLEshard_numbers (number UInt64) ENGINE=Memory;
CREATETABLEdist_numbers (number UInt64) ENGINE=Distributed('default', '', 'shard_numbers', rand()) ;
insert into dist_numbers selectnumberfrom numbers(10);
-- exemple from the test which is workingSELECTnumber,
grouping(number, number % 2) AS gr
FROM numbers(10)
GROUP BY
GROUPING SETS (
(number),
(number % 2)
)
ORDER BYnumber, gr;
-- same working example with the old analyzerSELECTnumber,
grouping(number, number % 2) AS gr
FROM dist_numbers
GROUP BY
GROUPING SETS (
(number),
(number % 2)
)
ORDER BYnumber, gr SETTINGS allow_experimental_analyzer=0;
-- not working with the new analyzerSELECTnumber,
grouping(number, number % 2) AS gr
FROM dist_numbers
GROUP BY
GROUPING SETS (
(number),
(number % 2)
)
ORDER BYnumber, gr;
I try to disable one by one every settings containing the string "optimize" to see if one could have trigger this error. None seems to have solve the issue.
changed the title [-]grouping doesn't work anymore on a distributed table when allow_experimental_analyze=1[/-][+]grouping function doesn't work anymore on a distributed table when allow_experimental_analyze=1[/+]on Oct 30, 2024
Activity
[-]grouping doesn't work anymore on a distributed table when allow_experimental_analyze=1[/-][+]grouping function doesn't work anymore on a distributed table when allow_experimental_analyze=1[/+]andrey-mikhailov commentedon Apr 9, 2025
I have the same problem on 25.3.
It's weird but the query works if the cluster has at least 2 shards.
Fix `grouping` function on Distributed table with single shard