ClickHouse/tests/queries/0_stateless/02771_resolve_compound_identifier.sql
2023-06-02 16:19:24 +02:00

12 lines
274 B
SQL

DROP DATABASE IF EXISTS test_02771;
CREATE DATABASE test_02771;
CREATE TABLE test_02771.t (x UInt8) ENGINE = MergeTree() ORDER BY x;
INSERT INTO test_02771.t SELECT number FROM numbers(10);
SELECT t.x FROM test_02771.t ORDER BY t.x;
DROP DATABASE IF EXISTS test_02771;