mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
fix ConstantExpressionTemplate with arrays
This commit is contained in:
parent
e1b7e2de2f
commit
3ccff833c1
@ -105,6 +105,14 @@ static void fillLiteralInfo(DataTypes & nested_types, LiteralInfo & info)
|
||||
{
|
||||
field_type = Field::Types::String;
|
||||
}
|
||||
else if (type_info.isArray())
|
||||
{
|
||||
field_type = Field::Types::Array;
|
||||
}
|
||||
else if (type_info.isTuple())
|
||||
{
|
||||
field_type = Field::Types::Tuple;
|
||||
}
|
||||
else
|
||||
throw Exception("Unexpected literal type inside Array: " + nested_type->getName() + ". It's a bug",
|
||||
ErrorCodes::LOGICAL_ERROR);
|
||||
|
Loading…
Reference in New Issue
Block a user