Update MergeTreeData.cpp

This commit is contained in:
alexey-milovidov 2021-08-15 05:28:38 +03:00 committed by GitHub
parent 73cb7d55ec
commit ab4415a22b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3227,7 +3227,7 @@ String MergeTreeData::getPartitionIDFromQuery(const ASTPtr & ast, ContextPtr loc
return partition_ast.id;
}
if (const auto * partition_function = partition_ast.value->as<ASTFunction>())
if (partition_ast.value->as<ASTFunction>())
checkPartitionExpressionFunction(ast);
if (format_version < MERGE_TREE_DATA_MIN_FORMAT_VERSION_WITH_CUSTOM_PARTITIONING)