Fix tests

This commit is contained in:
avogar 2024-07-03 15:23:01 +00:00
parent d03fcb5ff1
commit 6530ae104d

View File

@ -296,7 +296,7 @@ namespace
if (which.isInt64() || which.isUInt64())
{
auto new_type = std::make_shared<DataTypeFloat64>();
if (json_info->numbers_parsed_from_json_strings.erase(type.get()))
if (json_info && json_info->numbers_parsed_from_json_strings.erase(type.get()))
json_info->numbers_parsed_from_json_strings.insert(new_type.get());
type = new_type;
}