mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +00:00
16 lines
772 B
SQL
16 lines
772 B
SQL
SET allow_suspicious_low_cardinality_types=1;
|
|
|
|
DROP TABLE IF EXISTS test_table;
|
|
DROP TABLE IF EXISTS test_table__fuzz_3;
|
|
|
|
CREATE TABLE test_table (`id` Float32, `value` Float32) ENGINE = MergeTree ORDER BY id;
|
|
INSERT INTO test_table VALUES (-10.75, 95.57);
|
|
|
|
CREATE TABLE test_table__fuzz_3 (`id` LowCardinality(Nullable(Float32)), `value` Float32) ENGINE = MergeTree ORDER BY id SETTINGS allow_nullable_key=1;
|
|
|
|
insert into test_table__fuzz_3 select * from generateRandom() limit 10;
|
|
SELECT * FROM (SELECT CAST('104857.5', 'Float32'), corr(NULL, id, id) AS corr_value FROM test_table__fuzz_3 GROUP BY value) AS subquery ANTI LEFT JOIN test_table ON subquery.corr_value = test_table.id format Null;
|
|
|
|
DROP TABLE IF EXISTS test_table;
|
|
DROP TABLE IF EXISTS test_table__fuzz_3;
|