mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
fix ColumnConst.isColumnNullable() and related crash
This commit is contained in:
parent
3149b57100
commit
6fe4640e0b
@ -199,6 +199,7 @@ public:
|
||||
|
||||
bool onlyNull() const override { return data->isNullAt(0); }
|
||||
bool isColumnConst() const override { return true; }
|
||||
bool isColumnNullable() const override { return data->isColumnNullable(); }
|
||||
bool isNumeric() const override { return data->isNumeric(); }
|
||||
bool isFixedAndContiguous() const override { return data->isFixedAndContiguous(); }
|
||||
bool valuesHaveFixedSize() const override { return data->valuesHaveFixedSize(); }
|
||||
|
@ -0,0 +1,4 @@
|
||||
1 Nullable(UInt8)
|
||||
2 Nullable(UInt8)
|
||||
1 Nullable(UInt8)
|
||||
\N Nullable(Nothing)
|
@ -0,0 +1,4 @@
|
||||
SELECT coalesce(toNullable(1), toNullable(2)) as x, toTypeName(x);
|
||||
SELECT coalesce(NULL, toNullable(2)) as x, toTypeName(x);
|
||||
SELECT coalesce(toNullable(1), NULL) as x, toTypeName(x);
|
||||
SELECT coalesce(NULL, NULL) as x, toTypeName(x);
|
Loading…
Reference in New Issue
Block a user