ClickHouse/tests/queries/0_stateless/02519_monotonicity_fuzz.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
325 B
MySQL
Raw Normal View History

2023-01-01 19:41:18 +00:00
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;
2023-01-02 00:51:50 +00:00
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;