ClickHouse/tests/queries/0_stateless/01284_view_and_extremes_bug.sql
Nikolai Kochetov 8074e2027f Added test.
2020-05-26 16:32:44 +03:00

5 lines
284 B
SQL

drop table if exists view_bug_const;
CREATE VIEW view_bug_const AS SELECT 'World' AS hello FROM (SELECT number FROM system.numbers LIMIT 1) AS n1 JOIN (SELECT number FROM system.numbers LIMIT 1) AS n2 USING (number);
select * from view_bug_const;
drop table if exists view_bug_const;