fix FunctionToSubcolumnsPass

This commit is contained in:
Anton Popov 2024-01-17 21:31:49 +00:00
parent 72b0fed4ef
commit 94bb9a171d

View File

@ -75,6 +75,7 @@ public:
{
/// Replace `length(array_argument)` with `array_argument.size0`
column.name += ".size0";
column.type = std::make_shared<DataTypeUInt64>();
node = std::make_shared<ColumnNode>(column, column_source);
}
@ -109,6 +110,7 @@ public:
{
/// Replace `isNull(nullable_argument)` with `nullable_argument.null`
column.name += ".null";
column.type = std::make_shared<DataTypeUInt8>();
node = std::make_shared<ColumnNode>(column, column_source);
}