mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Fix Nullable const columns in JOIN
This commit is contained in:
parent
f6cabb6e08
commit
77adb509cb
@ -2,6 +2,7 @@
|
||||
|
||||
#include <Columns/ColumnLowCardinality.h>
|
||||
#include <Columns/ColumnNullable.h>
|
||||
#include <Columns/ColumnConst.h>
|
||||
|
||||
#include <DataStreams/materializeBlock.h>
|
||||
|
||||
@ -112,6 +113,8 @@ void convertColumnToNullable(ColumnWithTypeAndName & column)
|
||||
if (!column.column)
|
||||
return;
|
||||
|
||||
column.column = column.column->convertToFullColumnIfConst();
|
||||
|
||||
if (column.column->lowCardinality())
|
||||
{
|
||||
/// Convert nested to nullable, not LowCardinality itself
|
||||
|
1
tests/queries/0_stateless/02007_join_use_nulls.reference
Normal file
1
tests/queries/0_stateless/02007_join_use_nulls.reference
Normal file
@ -0,0 +1 @@
|
||||
1 2 3 1 3
|
1
tests/queries/0_stateless/02007_join_use_nulls.sql
Normal file
1
tests/queries/0_stateless/02007_join_use_nulls.sql
Normal file
@ -0,0 +1 @@
|
||||
SELECT *, d.* FROM ( SELECT 1 AS id, 2 AS value ) a SEMI LEFT JOIN ( SELECT 1 AS id, 3 AS values ) AS d USING id SETTINGS join_use_nulls=1;
|
Loading…
Reference in New Issue
Block a user