ClickHouse/tests/queries/0_stateless/02519_monotonicity_fuzz.sql
Alexey Milovidov d95aca1b32 Fix fuzzer
2023-01-02 01:51:50 +01:00

11 lines
325 B
SQL

DROP TABLE IF EXISTS t;
CREATE TABLE t (x Decimal(18, 3)) ENGINE = MergeTree ORDER BY x;
INSERT INTO t VALUES (1.1);
SELECT * FROM t WHERE toUInt64(x) = 1;
DROP TABLE t;
CREATE TABLE t (x DateTime64(3)) ENGINE = MergeTree ORDER BY x;
INSERT INTO t VALUES (1000);
SELECT x::UInt64 FROM t WHERE toUInt64(x) = 1;
DROP TABLE t;