Update src/Interpreters/convertFieldToType.cpp

Co-authored-by: Kruglov Pavel <48961922+Avogar@users.noreply.github.com>
This commit is contained in:
Miсhael Stetsyuk 2024-09-19 13:56:41 +01:00 committed by GitHub
parent f1705466ec
commit 451a8308c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -574,6 +574,7 @@ Field convertFieldToTypeImpl(const Field & src, const IDataType & type, const ID
Field tryConvertFieldToType(const Field & from_value, const IDataType & to_type, const IDataType * from_type_hint, const FormatSettings & format_settings)
{
/// TODO: implement proper tryConvertFieldToType without try/catch by adding template flag to convertFieldToTypeImpl to not throw an exception.
try
{
return convertFieldToType(from_value, to_type, from_type_hint, format_settings);