ClickHouse/tests/queries/0_stateless/02918_join_pm_lc_crash.sql
2024-08-05 15:29:14 +00:00

31 lines
915 B
SQL

SET joined_subquery_requires_alias = 0, join_algorithm = 'partial_merge';
SET enable_analyzer = 0, join_use_nulls = 0;
SELECT * FROM (SELECT dummy AS val FROM system.one)
JOIN (SELECT toLowCardinality(toNullable(dummy)) AS val
FROM system.one GROUP BY val WITH TOTALS)
USING (val);
SET enable_analyzer = 0, join_use_nulls = 1;
SELECT * FROM (SELECT dummy AS val FROM system.one)
JOIN (SELECT toLowCardinality(toNullable(dummy)) AS val
FROM system.one GROUP BY val WITH TOTALS)
USING (val);
SET enable_analyzer = 1, join_use_nulls = 0;
SELECT * FROM (SELECT dummy AS val FROM system.one)
JOIN (SELECT toLowCardinality(toNullable(dummy)) AS val
FROM system.one GROUP BY val WITH TOTALS)
USING (val);
SET enable_analyzer = 1, join_use_nulls = 1;
SELECT * FROM (SELECT dummy AS val FROM system.one)
JOIN (SELECT toLowCardinality(toNullable(dummy)) AS val
FROM system.one GROUP BY val WITH TOTALS)
USING (val);