ClickHouse/tests/queries/0_stateless/03015_analyzer_groupby_fuzz_60772.sql
2024-03-20 18:08:58 +01:00

24 lines
1.1 KiB
SQL

-- https://github.com/ClickHouse/ClickHouse/issues/60772
SELECT toFixedString(toFixedString(toFixedString(toFixedString(toFixedString(toFixedString('%W', 2), 2), 2),toLowCardinality(toLowCardinality(toNullable(2)))), 2), 2),
toFixedString(toFixedString('2018-01-02 22:33:44', 19), 19),
hasSubsequence(toNullable(materialize(toLowCardinality('garbage'))), 'gr')
GROUP BY
'2018-01-02 22:33:44',
toFixedString(toFixedString('2018-01-02 22:33:44', 19), 19),
'gr',
'2018-01-02 22:33:44'
SETTINGS allow_experimental_analyzer = 1;
-- WITH CUBE (note that result is different with the analyzer (analyzer is correct including all combinations)
SELECT
toFixedString(toFixedString(toFixedString(toFixedString(toFixedString(toFixedString('%W', 2), 2), 2), toLowCardinality(toLowCardinality(toNullable(2)))), 2), 2),
toFixedString(toFixedString('2018-01-02 22:33:44', 19), 19),
hasSubsequence(toNullable(materialize(toLowCardinality('garbage'))), 'gr')
GROUP BY
'2018-01-02 22:33:44',
toFixedString(toFixedString('2018-01-02 22:33:44', 19), 19),
'gr',
'2018-01-02 22:33:44'
WITH CUBE
SETTINGS allow_experimental_analyzer = 1;