fix build

This commit is contained in:
vdimir 2024-12-17 15:23:27 +00:00
parent 29433ef1ad
commit eb99a17fed
No known key found for this signature in database
GPG Key ID: 6EE4CE2BEDC51862
2 changed files with 6 additions and 1 deletions

View File

@ -1407,7 +1407,10 @@ std::tuple<QueryPlan, JoinPtr> buildJoinQueryPlan(
set_used_column_with_duplicates(columns_from_right_table, JoinTableSide::Right);
}
auto join_algorithm = chooseJoinAlgorithm(table_join, right_table_expression, left_header, right_header, planner_context, select_query_info);
trySetStorageInTableJoin(right_table_expression, table_join);
auto prepared_join_storage = tryGetStorageInTableJoin(right_table_expression, planner_context);
auto hash_table_stat_cache_key = preCalculateCacheKey(right_table_expression, select_query_info);
auto join_algorithm = chooseJoinAlgorithm(table_join, prepared_join_storage, left_header, right_header, planner_context->getQueryContext(), std::move(hash_table_stat_cache_key));
auto result_plan = QueryPlan();
bool is_filled_join = join_algorithm->isFilled();

View File

@ -394,6 +394,8 @@ PreparedJoinStorage tryGetStorageInTableJoin(const QueryTreeNodePtr & table_expr
storage = table_node->getStorage();
else if (auto * table_function = table_expression->as<TableFunctionNode>())
storage = table_function->getStorage();
else
return {};
PreparedJoinStorage result;
const auto & table_expression_data = planner_context->getTableExpressionDataOrThrow(table_expression);