Fix MergeTreeBaseSelectProcessor::executePrewhereActions

This commit is contained in:
vdimir 2021-06-21 16:01:02 +03:00
parent eb85c5a8e7
commit 46a5dd6701
No known key found for this signature in database
GPG Key ID: F57B3E10A21DBB31

View File

@ -431,7 +431,7 @@ void MergeTreeBaseSelectProcessor::executePrewhereActions(Block & block, const P
block.erase(prewhere_info->prewhere_column_name);
else
{
WhichDataType which(prewhere_column.type);
WhichDataType which(removeNullable(recursiveRemoveLowCardinality(prewhere_column.type)));
if (which.isInt() || which.isUInt())
prewhere_column.column = prewhere_column.type->createColumnConst(block.rows(), 1u)->convertToFullColumnIfConst();
else if (which.isFloat())