Add a test for #45214

This commit is contained in:
Alexey Milovidov 2023-02-25 01:03:38 +01:00
parent 52beeadac7
commit 3b433783d5
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,20 @@
1023 \N \N 0 2147483646
1023 \N \N 0 2147483646
1023 \N \N 0 2147483646
1023 \N \N 0 2147483646
1023 \N \N 0 2147483646
1023 \N \N 0 2147483646
1023 \N \N 0 2147483646
1023 \N \N 0 2147483646
1023 \N \N 0 2147483646
1023 \N \N 0 2147483646
1023 \N \N 0 2147483646
1023 \N \N 0 2147483646
1023 \N \N 0 2147483646
1023 \N \N 0 2147483646
1023 \N \N 0 2147483646
1023 \N \N 0 2147483646
1023 \N \N 0 2147483646
1023 \N \N 0 2147483646
1023 \N \N 0 2147483646
1023 \N \N 0 2147483646

View File

@ -0,0 +1,10 @@
DROP TABLE IF EXISTS table1__fuzz_19;
SET allow_suspicious_low_cardinality_types = 1;
CREATE TABLE table1__fuzz_19 (`id` LowCardinality(UInt16), `v` DateTime64(3, 'UTC')) ENGINE = ReplacingMergeTree(v) PARTITION BY id % 200 ORDER BY id;
INSERT INTO table1__fuzz_19 SELECT number - 205, number FROM numbers(10);
INSERT INTO table1__fuzz_19 SELECT number - 205, number FROM numbers(400, 10);
SELECT 1023, (((id % -9223372036854775807) = NULL) OR ((id % NULL) = 100) OR ((id % NULL) = 65537)) = ((id % inf) = 9223372036854775806), (id % NULL) = NULL, (id % 3.4028234663852886e38) = 1023, 2147483646 FROM table1__fuzz_19 ORDER BY (((id % 1048577) = 1024) % id) = 1023 DESC NULLS FIRST, id % 2147483646 ASC NULLS FIRST, ((id % 1) = 9223372036854775807) OR ((id % NULL) = 257) DESC NULLS FIRST;
DROP TABLE table1__fuzz_19;