ClickHouse/tests/queries/0_stateless/02473_prewhere_with_bigint.sql
2022-12-13 12:48:14 +01:00

25 lines
972 B
SQL

DROP TABLE IF EXISTS prewhere_int128;
DROP TABLE IF EXISTS prewhere_int256;
DROP TABLE IF EXISTS prewhere_uint128;
DROP TABLE IF EXISTS prewhere_uint256;
CREATE TABLE prewhere_int128 (a Int128) ENGINE=MergeTree ORDER BY a;
INSERT INTO prewhere_int128 VALUES (1);
SELECT a FROM prewhere_int128 PREWHERE a; -- { serverError 59 }
DROP TABLE prewhere_int128;
CREATE TABLE prewhere_int256 (a Int256) ENGINE=MergeTree ORDER BY a;
INSERT INTO prewhere_int256 VALUES (1);
SELECT a FROM prewhere_int256 PREWHERE a; -- { serverError 59 }
DROP TABLE prewhere_int256;
CREATE TABLE prewhere_uint128 (a UInt128) ENGINE=MergeTree ORDER BY a;
INSERT INTO prewhere_uint128 VALUES (1);
SELECT a FROM prewhere_uint128 PREWHERE a; -- { serverError 59 }
DROP TABLE prewhere_uint128;
CREATE TABLE prewhere_uint256 (a UInt256) ENGINE=MergeTree ORDER BY a;
INSERT INTO prewhere_uint256 VALUES (1);
SELECT a FROM prewhere_uint256 PREWHERE a; -- { serverError 59 }
DROP TABLE prewhere_uint256;