Skip to content

Commit

Permalink
Merge pull request ClickHouse#66101 from CurtizJ/add-test-for-58998
Browse files Browse the repository at this point in the history
Add a test for ClickHouse#58998
  • Loading branch information
CurtizJ authored Jul 8, 2024
2 parents 2c3a8e2 + 204f2e1 commit fca47bb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
13 changes: 13 additions & 0 deletions tests/queries/0_stateless/03200_subcolumns_join_use_nulls.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
DROP TABLE IF EXISTS t_subcolumns_join;

CREATE TABLE t_subcolumns_join (id UInt64) ENGINE=MergeTree ORDER BY tuple();

INSERT INTO t_subcolumns_join SELECT number as number FROM numbers(10000);

SELECT
count()
FROM (SELECT number FROM numbers(10)) as tbl LEFT JOIN t_subcolumns_join ON number = id
WHERE id is null
SETTINGS allow_experimental_analyzer = 1, optimize_functions_to_subcolumns = 1, join_use_nulls = 1;

DROP TABLE t_subcolumns_join;

0 comments on commit fca47bb

Please sign in to comment.