fix fuzzer

This commit is contained in:
Yarik Briukhovetskyi 2024-08-09 12:56:14 +02:00 committed by GitHub
parent b4c5537183
commit 35f19522e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1579,7 +1579,7 @@ struct ConvertImpl
IntervalKind to = typeid_cast<const DataTypeInterval *>(result_type.get())->getKind();
IntervalKind from = typeid_cast<const DataTypeInterval *>(arguments[0].type.get())->getKind();
if (from == to)
if (from == to || arguments[0].column->empty())
return arguments[0].column;
const auto &map = getGranularityMap();