mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
Update src/Interpreters/convertFieldToType.cpp
Co-authored-by: Kruglov Pavel <48961922+Avogar@users.noreply.github.com>
This commit is contained in:
parent
f1705466ec
commit
451a8308c3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user