Addition to prev. revision

This commit is contained in:
Alexey Milovidov 2020-05-30 19:35:59 +03:00
parent 1b825baf21
commit 41bfa8a275

View File

@ -146,7 +146,7 @@ struct ConvertImpl
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);
throw Exception("Unsupported data type in conversion function", ErrorCodes::CANNOT_CONVERT_TYPE);
}
else
vec_to[i] = static_cast<ToFieldType>(vec_from[i]);