Update Set.cpp

This commit is contained in:
Yarik Briukhovetskyi 2024-11-29 20:18:41 +01:00 committed by GitHub
parent 98a358db10
commit ca5faf14ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -440,7 +440,7 @@ ColumnPtr Set::execute(const ColumnsWithTypeAndName & columns, bool negative) co
}
// If the original column is DateTime64, check for sub-second precision
if (isDateTime64(column_to_cast.column->getDataType()) && !isDateTime64(result->getDataType()))
if (isDateTime64(column_to_cast.column->getDataType()) && isDateTime64(result->getDataType()))
{
processDateTime64Column(column_to_cast, result, null_map_holder, null_map);
}