Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Projections and WITH TOTALS don't work with non-default totals_mode #44614

Closed
alexey-milovidov opened this issue Dec 26, 2022 · 0 comments · Fixed by #44615
Closed

Projections and WITH TOTALS don't work with non-default totals_mode #44614

alexey-milovidov opened this issue Dec 26, 2022 · 0 comments · Fixed by #44615
Assignees
Labels
fuzz Problem found by one of the fuzzers

Comments

@alexey-milovidov
Copy link
Member

CREATE TABLE t (x UInt8, PROJECTION p (SELECT x GROUP BY x)) ENGINE = MergeTree ORDER BY ();
INSERT INTO t VALUES (0);

SET group_by_overflow_mode = 'any', max_rows_to_group_by = 1000, totals_mode = 'after_having_auto';
SELECT x FROM t GROUP BY x WITH TOTALS;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fuzz Problem found by one of the fuzzers
Projects
None yet
1 participant