Nikita Mikhaylov 2024-04-02 16:41:42 +00:00
parent 0a5747377b
commit 1fb23c64f1
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
-- https://github.com/ClickHouse/ClickHouse/issues/42399
CREATE TABLE IF NOT EXISTS t0 (c0 Int32) ENGINE = Memory() ;
CREATE TABLE t1 (c0 Int32, c1 Int32, c2 Int32) ENGINE = Memory() ;
CREATE TABLE t2 (c0 String, c1 String MATERIALIZED (c2), c2 Int32) ENGINE = Memory() ;
CREATE TABLE t3 (c0 String, c1 String, c2 String) ENGINE = Log() ;
CREATE TABLE IF NOT EXISTS t4 (c0 Int32) ENGINE = Log() ;
SELECT t3.c1, t3.c2, t1.c1, t1.c0, t2.c2, t0.c0, t1.c2, t2.c1, t4.c0 FROM t3, t0, t1, t2, t4;