mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +00:00
24 lines
721 B
SQL
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;
|