From ab4415a22b17f21517351412652800590a1ff594 Mon Sep 17 00:00:00 2001 From: alexey-milovidov Date: Sun, 15 Aug 2021 05:28:38 +0300 Subject: [PATCH] Update MergeTreeData.cpp --- src/Storages/MergeTree/MergeTreeData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Storages/MergeTree/MergeTreeData.cpp b/src/Storages/MergeTree/MergeTreeData.cpp index ebd961ab428..2892efab12d 100644 --- a/src/Storages/MergeTree/MergeTreeData.cpp +++ b/src/Storages/MergeTree/MergeTreeData.cpp @@ -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()) + if (partition_ast.value->as()) checkPartitionExpressionFunction(ast); if (format_version < MERGE_TREE_DATA_MIN_FORMAT_VERSION_WITH_CUSTOM_PARTITIONING)