mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Addition to prev. revision
This commit is contained in:
parent
1b825baf21
commit
41bfa8a275
@ -146,7 +146,7 @@ struct ConvertImpl
|
|||||||
else if constexpr (IsDataTypeNumber<FromDataType> && IsDataTypeDecimal<ToDataType>)
|
else if constexpr (IsDataTypeNumber<FromDataType> && IsDataTypeDecimal<ToDataType>)
|
||||||
vec_to[i] = convertToDecimal<FromDataType, ToDataType>(vec_from[i], vec_to.getScale());
|
vec_to[i] = convertToDecimal<FromDataType, ToDataType>(vec_from[i], vec_to.getScale());
|
||||||
else
|
else
|
||||||
throw Exception("Unsupported data type in conversion function", ErrorCodes::NOT_IMPLEMENTED);
|
throw Exception("Unsupported data type in conversion function", ErrorCodes::CANNOT_CONVERT_TYPE);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
vec_to[i] = static_cast<ToFieldType>(vec_from[i]);
|
vec_to[i] = static_cast<ToFieldType>(vec_from[i]);
|
||||||
|
Loading…
Reference in New Issue
Block a user