Use src_type for convertion in KeyCondition

This commit is contained in:
Andrew Onyshchuk 2020-05-10 18:17:54 -05:00
parent eeac7aa313
commit 330f06328f

View File

@ -710,8 +710,7 @@ static void castValueToType(const DataTypePtr & desired_type, Field & src_value,
try
{
/// NOTE: We don't need accurate info about src_type at this moment
src_value = convertFieldToType(src_value, *desired_type);
src_value = convertFieldToType(src_value, *desired_type, src_type.get());
}
catch (...)
{