-- 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;