S
UNION ALL
аггрегироваться вроде паралельно должны
Size: a a a
S
ME
ME
ME
S
ME
S
ME
S
Y
ALTER TABLE table_xxx REMOVE TTL
Syntax error: failed at position 47 ('REMOVE'):
ALTER TABLE table_xxx REMOVE TTL
Expected one of: CLEAR COLUMN, FETCH PARTITION, ATTACH PARTITION, ADD INDEX, DROP INDEX, ALTER command, UPDATE, MATERIALIZE INDEX, ADD CONSTRAINT, MATERIALIZE TTL, a list of ALTER commands, COMMENT COLUMN, MODIFY TTL, MOVE PART, DROP COLUMN, MOVE PARTITION, MODIFY COLUMN, DROP PARTITION, ON, MODIFY SAMPLE BY, DELETE WHERE, ADD COLUMN, CLEAR INDEX, DROP CONSTRAINT, DETACH PARTITION, REPLACE PARTITION, MODIFY ORDER BY, ATTACH PART, RENAME COLUMN, FREEZE, DROP DETACHED PART, MODIFY SETTING, DROP DETACHED PARTITION, MODIFY QUERY
В
ALTER TABLE table_xxx REMOVE TTL
Syntax error: failed at position 47 ('REMOVE'):
ALTER TABLE table_xxx REMOVE TTL
Expected one of: CLEAR COLUMN, FETCH PARTITION, ATTACH PARTITION, ADD INDEX, DROP INDEX, ALTER command, UPDATE, MATERIALIZE INDEX, ADD CONSTRAINT, MATERIALIZE TTL, a list of ALTER commands, COMMENT COLUMN, MODIFY TTL, MOVE PART, DROP COLUMN, MOVE PARTITION, MODIFY COLUMN, DROP PARTITION, ON, MODIFY SAMPLE BY, DELETE WHERE, ADD COLUMN, CLEAR INDEX, DROP CONSTRAINT, DETACH PARTITION, REPLACE PARTITION, MODIFY ORDER BY, ATTACH PART, RENAME COLUMN, FREEZE, DROP DETACHED PART, MODIFY SETTING, DROP DETACHED PARTITION, MODIFY QUERY
D
ALTER TABLE table_xxx REMOVE TTL
Syntax error: failed at position 47 ('REMOVE'):
ALTER TABLE table_xxx REMOVE TTL
Expected one of: CLEAR COLUMN, FETCH PARTITION, ATTACH PARTITION, ADD INDEX, DROP INDEX, ALTER command, UPDATE, MATERIALIZE INDEX, ADD CONSTRAINT, MATERIALIZE TTL, a list of ALTER commands, COMMENT COLUMN, MODIFY TTL, MOVE PART, DROP COLUMN, MOVE PARTITION, MODIFY COLUMN, DROP PARTITION, ON, MODIFY SAMPLE BY, DELETE WHERE, ADD COLUMN, CLEAR INDEX, DROP CONSTRAINT, DETACH PARTITION, REPLACE PARTITION, MODIFY ORDER BY, ATTACH PART, RENAME COLUMN, FREEZE, DROP DETACHED PART, MODIFY SETTING, DROP DETACHED PARTITION, MODIFY QUERY
Y
CO
КТ
КТ
SELECT
user,
sum(cost)
FROM tmp333
GROUP BY user
┌─user─┬─sum(cost)─┐
│ me │ 6 │
│ you │ 4 │
└──────┴───────────┘
SELECT
user,
sum(cost)
FROM tmp333
GROUP BY user
WITH TOTALS
┌─user─┬─sum(cost)─┐
│ me │ 6 │
│ you │ 4 │
└──────┴───────────┘
Totals:
┌─user─┬─sum(cost)─┐
│ │ 10 │
└──────┴───────────┘
КТ
КТ
КТ