2023-11-21 12:15:12 +00:00
|
|
|
|
|
|
|
SET joined_subquery_requires_alias = 0, join_algorithm = 'partial_merge';
|
|
|
|
|
2024-07-12 12:49:26 +00:00
|
|
|
SET enable_analyzer = 0, join_use_nulls = 0;
|
2023-11-21 12:15:12 +00:00
|
|
|
|
|
|
|
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);
|
|
|
|
|
2024-07-12 12:49:26 +00:00
|
|
|
SET enable_analyzer = 0, join_use_nulls = 1;
|
2023-11-21 12:15:12 +00:00
|
|
|
|
|
|
|
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);
|
|
|
|
|
2024-07-12 12:49:26 +00:00
|
|
|
SET enable_analyzer = 1, join_use_nulls = 0;
|
2023-11-21 12:15:12 +00:00
|
|
|
|
|
|
|
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);
|
|
|
|
|
2024-07-12 12:49:26 +00:00
|
|
|
SET enable_analyzer = 1, join_use_nulls = 1;
|
2023-11-21 12:15:12 +00:00
|
|
|
|
|
|
|
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);
|