ClickHouse/tests/queries/0_stateless/01124_view_bad_types.sql

12 lines
345 B
MySQL
Raw Normal View History

2018-12-29 00:31:49 +00:00
DROP TABLE IF EXISTS test.table;
CREATE TABLE test.table (x UInt16) ENGINE = TinyLog;
INSERT INTO test.table SELECT * FROM system.numbers LIMIT 10;
DROP TABLE IF EXISTS test.view;
CREATE VIEW test.view (x UInt64) AS SELECT * FROM test.table;
2020-04-12 21:07:11 +00:00
SELECT x, any(x) FROM test.view GROUP BY x ORDER BY x;
2018-12-29 00:31:49 +00:00
DROP TABLE test.view;
DROP TABLE test.table;