mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Fix uninitialized memory in conversion
This commit is contained in:
parent
6468d7af8c
commit
326d2f9af8
@ -145,6 +145,8 @@ struct ConvertImpl
|
||||
vec_to[i] = convertFromDecimal<FromDataType, ToDataType>(vec_from[i], vec_from.getScale());
|
||||
else if constexpr (IsDataTypeNumber<FromDataType> && IsDataTypeDecimal<ToDataType>)
|
||||
vec_to[i] = convertToDecimal<FromDataType, ToDataType>(vec_from[i], vec_to.getScale());
|
||||
else
|
||||
throw Exception("Unsupported data type in conversion function", ErrorCodes::NOT_IMPLEMENTED);
|
||||
}
|
||||
else
|
||||
vec_to[i] = static_cast<ToFieldType>(vec_from[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user