From ac8dd527dcfd3028fb440d98ad5eebbb7eced5cc Mon Sep 17 00:00:00 2001 From: Antonio Andelic Date: Tue, 28 Mar 2023 07:47:37 +0000 Subject: [PATCH] Address PR comments --- src/Planner/Planner.cpp | 5 ----- src/Planner/PlannerJoinTree.cpp | 7 +++---- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/Planner/Planner.cpp b/src/Planner/Planner.cpp index e38f460e7c5..a8e0d80ce8c 100644 --- a/src/Planner/Planner.cpp +++ b/src/Planner/Planner.cpp @@ -38,7 +38,6 @@ #include #include -#include #include #include #include @@ -70,10 +69,6 @@ #include #include -#include - -#include - namespace DB { diff --git a/src/Planner/PlannerJoinTree.cpp b/src/Planner/PlannerJoinTree.cpp index 1741cca17c5..0479170eba1 100644 --- a/src/Planner/PlannerJoinTree.cpp +++ b/src/Planner/PlannerJoinTree.cpp @@ -1,7 +1,6 @@ #include #include -#include "Storages/SelectQueryInfo.h" #include @@ -439,8 +438,8 @@ FilterDAGInfo buildRowPolicyFilterIfNeeded(const StoragePtr & storage, } FilterDAGInfo buildCustomKeyFilterIfNeeded(const StoragePtr & storage, - SelectQueryInfo & table_expression_query_info, - PlannerContextPtr & planner_context) + SelectQueryInfo & table_expression_query_info, + PlannerContextPtr & planner_context) { const auto & query_context = planner_context->getQueryContext(); const auto & settings = query_context->getSettingsRef(); @@ -688,7 +687,7 @@ JoinTreeQueryPlan buildQueryPlanForTableExpression(QueryTreeNodePtr table_expres } else { - if (auto * distributed = dynamic_cast(storage.get()); + if (auto * distributed = typeid_cast(storage.get()); distributed && canUseCustomKey(settings, *distributed->getCluster(), *query_context)) { table_expression_query_info.use_custom_key = true;