2022-03-25 12:00:02 +00:00
|
|
|
-- Tags: no-parallel
|
|
|
|
DROP TABLE IF EXISTS lc_table;
|
|
|
|
|
|
|
|
CREATE TABLE lc_table
|
|
|
|
(
|
|
|
|
col LowCardinality(String)
|
|
|
|
) ENGINE=TinyLog;
|
|
|
|
|
|
|
|
INSERT INTO lc_table VALUES('x');
|
|
|
|
|
2022-05-30 12:59:58 +00:00
|
|
|
SELECT * FROM lc_table INNER JOIN lc_table AS lc_table2
|
|
|
|
ON lc_table.col = lc_table2.col;
|
2022-03-25 12:00:02 +00:00
|
|
|
|
2022-05-30 12:59:58 +00:00
|
|
|
SELECT * FROM lc_table INNER JOIN lc_table AS lc_table2
|
|
|
|
ON CAST(lc_table.col AS String) = CAST(lc_table2.col AS String);
|
2022-03-25 12:00:02 +00:00
|
|
|
|
2022-05-30 12:59:58 +00:00
|
|
|
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);
|
2022-03-25 12:00:02 +00:00
|
|
|
|
2022-05-30 12:59:58 +00:00
|
|
|
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));
|
2022-03-25 12:00:02 +00:00
|
|
|
|
|
|
|
DROP TABLE IF EXISTS lc_table;
|