ClickHouse/tests/queries/0_stateless/02244_lowcardinality_hash_join.sql
2022-05-31 16:02:57 +00:00

24 lines
721 B
SQL

-- Tags: no-parallel
DROP TABLE IF EXISTS lc_table;
CREATE TABLE lc_table
(
col LowCardinality(String)
) ENGINE=TinyLog;
INSERT INTO lc_table VALUES('x');
SELECT * FROM lc_table INNER JOIN lc_table AS lc_table2
ON lc_table.col = lc_table2.col;
SELECT * FROM lc_table INNER JOIN lc_table AS lc_table2
ON CAST(lc_table.col AS String) = CAST(lc_table2.col AS String);
SELECT * FROM lc_table INNER JOIN lc_table AS lc_table2
ON (lc_table.col = lc_table2.col) OR (lc_table.col = lc_table2.col);
SELECT * FROM lc_table INNER JOIN lc_table AS lc_table2
ON (CAST(lc_table.col AS String) = CAST(lc_table2.col AS String)) OR (CAST(lc_table.col AS String) = CAST(lc_table2.col AS String));
DROP TABLE IF EXISTS lc_table;