Skip to content

Commit

Permalink
Changed SubqueryRef to SubqueryExpression
Browse files Browse the repository at this point in the history
  • Loading branch information
Dtenwolde committed Feb 15, 2024
1 parent f98cf9b commit e7060a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion duckpgq/include/duckpgq/functions/tablefunctions/match.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ struct PGQMatchFunction : public TableFunction {

static unique_ptr<SubqueryRef> CreateCountCTESubquery();

static unique_ptr<SubqueryRef>
static unique_ptr<SubqueryExpression>
CreateCSRCTE(const shared_ptr<PropertyGraphTable> &edge_table,
const string &edge_binding, const string &prev_binding,
const string &next_binding);
Expand Down
4 changes: 2 additions & 2 deletions duckpgq/src/duckpgq/functions/tablefunctions/match.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ unique_ptr<SubqueryRef> PGQMatchFunction::CreateCountCTESubquery() {
return temp_cte_select_subquery;
}

unique_ptr<SubqueryRef>
unique_ptr<SubqueryExpression>
PGQMatchFunction::CreateCSRCTE(const shared_ptr<PropertyGraphTable> &edge_table,
const string &prev_binding,
const string &edge_binding,
Expand Down Expand Up @@ -355,7 +355,7 @@ PGQMatchFunction::CreateCSRCTE(const shared_ptr<PropertyGraphTable> &edge_table,
auto outer_select_statement = make_uniq<SelectStatement>();

outer_select_statement->node = std::move(outer_select_node);
auto csr_subquery = make_uniq<SubqueryRef>();
auto csr_subquery = make_uniq<SubqueryExpression>();
csr_subquery->subquery = std::move(outer_select_statement);
return csr_subquery;
}
Expand Down

0 comments on commit e7060a0

Please sign in to comment.