forked from ClickHouse/ClickHouse
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ClickHouse#57048 from ClickHouse/vdimir/pmj_crash_…
…57016 Fix Nullptr dereference in partial merge join with joined_subquery_re…
- Loading branch information
Showing
3 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
tests/queries/0_stateless/02918_join_pm_lc_crash.reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
0 | ||
|
||
0 | ||
0 | ||
|
||
0 | ||
0 | ||
|
||
\N | ||
0 | ||
|
||
\N |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
SET joined_subquery_requires_alias = 0, join_algorithm = 'partial_merge'; | ||
|
||
SET allow_experimental_analyzer = 0, join_use_nulls = 0; | ||
|
||
SELECT * FROM (SELECT dummy AS val FROM system.one) | ||
JOIN (SELECT toLowCardinality(toNullable(dummy)) AS val | ||
FROM system.one GROUP BY val WITH TOTALS) | ||
USING (val); | ||
|
||
SET allow_experimental_analyzer = 0, join_use_nulls = 1; | ||
|
||
SELECT * FROM (SELECT dummy AS val FROM system.one) | ||
JOIN (SELECT toLowCardinality(toNullable(dummy)) AS val | ||
FROM system.one GROUP BY val WITH TOTALS) | ||
USING (val); | ||
|
||
SET allow_experimental_analyzer = 1, join_use_nulls = 0; | ||
|
||
SELECT * FROM (SELECT dummy AS val FROM system.one) | ||
JOIN (SELECT toLowCardinality(toNullable(dummy)) AS val | ||
FROM system.one GROUP BY val WITH TOTALS) | ||
USING (val); | ||
|
||
SET allow_experimental_analyzer = 1, join_use_nulls = 1; | ||
|
||
SELECT * FROM (SELECT dummy AS val FROM system.one) | ||
JOIN (SELECT toLowCardinality(toNullable(dummy)) AS val | ||
FROM system.one GROUP BY val WITH TOTALS) | ||
USING (val); | ||
|