ClickHouse/tests/queries/0_stateless/00856_no_column_issue_4242.sql
Ivan 97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

12 lines
370 B
SQL

DROP TABLE IF EXISTS t1_00856;
DROP TABLE IF EXISTS t2_00856;
CREATE TABLE t1_00856 (n Int32) ENGINE = Memory;
CREATE TABLE t2_00856 (a Int32, n Int32) ENGINE = Memory;
SELECT count() FROM t1_00856 WHERE if(1, 1, n = 0);
SELECT count(n) FROM t2_00856 WHERE if(1, 1, n = 0);
SELECT count() FROM t2_00856 WHERE if(1, 1, n = 0);
DROP TABLE t1_00856;
DROP TABLE t2_00856;