2024-04-10 15:12:57 +00:00
|
|
|
-- https://github.com/ClickHouse/ClickHouse/issues/11000
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS test_table_01;
|
|
|
|
DROP TABLE IF EXISTS test_table_02;
|
|
|
|
DROP TABLE IF EXISTS test_view_01;
|
|
|
|
|
2024-07-12 12:49:26 +00:00
|
|
|
SET enable_analyzer = 1;
|
2024-04-10 15:12:57 +00:00
|
|
|
|
|
|
|
CREATE TABLE test_table_01 (
|
|
|
|
column Int32
|
|
|
|
) ENGINE = Memory();
|
|
|
|
|
|
|
|
CREATE TABLE test_table_02 (
|
|
|
|
column Int32
|
|
|
|
) ENGINE = Memory();
|
|
|
|
|
|
|
|
CREATE VIEW test_view_01 AS
|
2024-07-12 12:49:26 +00:00
|
|
|
SELECT
|
2024-04-10 15:12:57 +00:00
|
|
|
t1.column,
|
|
|
|
t2.column
|
2024-07-12 12:49:26 +00:00
|
|
|
FROM test_table_01 AS t1
|
2024-04-10 15:12:57 +00:00
|
|
|
INNER JOIN test_table_02 AS t2 ON t1.column = t2.column;
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS test_table_01;
|
|
|
|
DROP TABLE IF EXISTS test_table_02;
|
2024-07-12 12:49:26 +00:00
|
|
|
DROP TABLE IF EXISTS test_view_01;
|