Merge pull request #53278 from ClickHouse/grace-hash-join-structure-mismatch

Add a test with Block structure mismatch in grace hash join.
This commit is contained in:
Nikolai Kochetov 2023-10-03 16:25:10 +02:00 committed by GitHub
commit 7b6548157c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
set allow_suspicious_low_cardinality_types = 1;
CREATE TABLE t1__fuzz_17 (`a` LowCardinality(UInt8), `b` Nullable(UInt256)) ENGINE = Memory;
CREATE TABLE t2__fuzz_0 (`c` UInt32, `d` String) ENGINE = Memory;
insert into t1__fuzz_17 select * from generateRandom() limit 1;
insert into t2__fuzz_0 select * from generateRandom() limit 1;
set join_algorithm='grace_hash';
SELECT * FROM t1__fuzz_17 INNER JOIN t2__fuzz_0 ON c = a WHERE a format Null;