ClickHouse/tests/queries/0_stateless/02785_left_anti_join_bug.sql

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

16 lines
772 B
MySQL
Raw Normal View History

2023-06-13 15:23:12 +00:00
SET allow_suspicious_low_cardinality_types=1;
2023-10-09 23:22:27 +00:00
DROP TABLE IF EXISTS test_table;
DROP TABLE IF EXISTS test_table__fuzz_3;
2023-06-13 15:23:12 +00:00
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;