mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 05:22:17 +00:00
28 lines
721 B
MySQL
28 lines
721 B
MySQL
|
-- 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;
|