Add tests for #57193

This commit is contained in:
Raúl Marín 2024-01-17 11:39:51 +01:00
parent 9146391e48
commit 29eb3347cd
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,4 @@
2147483647 0
0
0

View File

@ -0,0 +1,20 @@
-- https://github.com/ClickHouse/ClickHouse/issues/57193
SELECT
2147483647,
count(pow(NULL, 1.0001))
FROM remote(test_cluster_two_shards, system, one)
GROUP BY
makeDateTime64(NULL, NULL, pow(NULL, '257') - '-1', '0.2147483647', 257),
makeDateTime64(pow(pow(NULL, '21474836.46') - '0.0000065535', 1048577), '922337203685477580.6', NULL, NULL, pow(NULL, 1.0001) - 65536, NULL)
WITH CUBE
SETTINGS allow_experimental_analyzer = 1;
CREATE TABLE data_01223 (`key` Int) ENGINE = Memory;
CREATE TABLE dist_layer_01223 AS data_01223 ENGINE = Distributed(test_cluster_two_shards, currentDatabase(), data_01223);
CREATE TABLE dist_01223 AS data_01223 ENGINE = Distributed(test_cluster_two_shards, currentDatabase(), dist_layer_01223);
SELECT count(round('92233720368547758.07', '-0.01', NULL, nan, '25.7', '-92233720368547758.07', NULL))
FROM dist_01223
WHERE round(NULL, 1025, 1.1754943508222875e-38, NULL)
WITH TOTALS
SETTINGS allow_experimental_analyzer = 1;