Fix build, inferJoinKeyCommonType definition

This commit is contained in:
vdimir 2021-07-01 10:51:32 +03:00
parent ac17c0c817
commit 6172cc1676
No known key found for this signature in database
GPG Key ID: F57B3E10A21DBB31
2 changed files with 2 additions and 2 deletions

View File

@ -892,7 +892,7 @@ static std::unique_ptr<QueryPlan> buildJoinedPlan(
* - this function shows the expression JOIN _data1.
*/
auto interpreter = interpretSubquery(
join_element.table_expression, getContext(), original_right_columns, query_options.copy().setWithAllColumns());
join_element.table_expression, context, original_right_columns, query_options.copy().setWithAllColumns());
auto joined_plan = std::make_unique<QueryPlan>();
interpreter->buildQueryPlan(*joined_plan);
{

View File

@ -116,7 +116,7 @@ private:
/// Calculates common supertypes for corresponding join key columns.
template <typename LeftNamesAndTypes, typename RightNamesAndTypes>
bool inferJoinKeyCommonType(const LeftNamesAndTypes & left, const RightNamesAndTypes & right, bool to_supertype);
bool inferJoinKeyCommonType(const LeftNamesAndTypes & left, const RightNamesAndTypes & right, bool allow_right);
NamesAndTypesList correctedColumnsAddedByJoin() const;