diff --git a/src/Interpreters/convertFieldToType.cpp b/src/Interpreters/convertFieldToType.cpp index 99f01a6f120..ef70307ccf1 100644 --- a/src/Interpreters/convertFieldToType.cpp +++ b/src/Interpreters/convertFieldToType.cpp @@ -585,7 +585,7 @@ Field convertFieldToTypeImpl(const Field & src, const IDataType & type, const ID throw; } - if (!col->size()) + if (col->empty()) return Field(Null()); Field parsed = (*col)[0]; return convertFieldToType(parsed, type, from_type_hint, format_settings);