Skip to content

Commit

Permalink
format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dtenwolde committed Aug 20, 2023
1 parent a354c29 commit c5897e9
Show file tree
Hide file tree
Showing 2 changed files with 1,047 additions and 1,025 deletions.
83 changes: 43 additions & 40 deletions duckpgq/include/duckpgq/functions/tablefunctions/match.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,48 +61,51 @@ struct MatchFunction : public TableFunction {
const string &edge_binding, const string &prev_binding,
const string &next_binding);

static void EdgeTypeAny(
shared_ptr<PropertyGraphTable> &edge_table,
const string &edge_binding,
const string &prev_binding,
const string &next_binding,
vector<unique_ptr<ParsedExpression>> &conditions);

static void EdgeTypeLeft(shared_ptr<PropertyGraphTable> &edge_table,
const string &next_table_name, const string &prev_table_name,
const string &edge_binding,
const string &prev_binding,
const string &next_binding,
vector<unique_ptr<ParsedExpression>> &conditions);

static void EdgeTypeRight(shared_ptr<PropertyGraphTable> &edge_table,
const string &next_table_name, const string &prev_table_name,
const string &edge_binding,
const string &prev_binding,
const string &next_binding,
vector<unique_ptr<ParsedExpression>> &conditions);

static void EdgeTypeLeftRight(shared_ptr<PropertyGraphTable> &edge_table,
const string &edge_binding,
const string &prev_binding,
const string &next_binding,
vector<unique_ptr<ParsedExpression>> &conditions,
unordered_map<string, string> &alias_map,
int32_t &extra_alias_counter);

static PathElement* HandleNestedSubPath(unique_ptr<PathReference> &path_reference,
vector<unique_ptr<ParsedExpression>> &conditions,
idx_t element_idx);

static unique_ptr<TableRef> MatchBindReplace(ClientContext &context,
static void EdgeTypeAny(shared_ptr<PropertyGraphTable> &edge_table,
const string &edge_binding,
const string &prev_binding,
const string &next_binding,
vector<unique_ptr<ParsedExpression>> &conditions);

static void EdgeTypeLeft(shared_ptr<PropertyGraphTable> &edge_table,
const string &next_table_name,
const string &prev_table_name,
const string &edge_binding,
const string &prev_binding,
const string &next_binding,
vector<unique_ptr<ParsedExpression>> &conditions);

static void EdgeTypeRight(shared_ptr<PropertyGraphTable> &edge_table,
const string &next_table_name,
const string &prev_table_name,
const string &edge_binding,
const string &prev_binding,
const string &next_binding,
vector<unique_ptr<ParsedExpression>> &conditions);

static void EdgeTypeLeftRight(
shared_ptr<PropertyGraphTable> &edge_table, const string &edge_binding,
const string &prev_binding, const string &next_binding,
vector<unique_ptr<ParsedExpression>> &conditions,
unordered_map<string, string> &alias_map, int32_t &extra_alias_counter);

static PathElement *
HandleNestedSubPath(unique_ptr<PathReference> &path_reference,
vector<unique_ptr<ParsedExpression>> &conditions,
idx_t element_idx);

static unique_ptr<TableRef> MatchBindReplace(ClientContext &context,
TableFunctionBindInput &input);

static unique_ptr<SubqueryRef> GenerateSubpathPatternSubquery(unique_ptr<PathPattern> &path_pattern,
CreatePropertyGraphInfo* pg_table,
vector<unique_ptr<ParsedExpression>> &column_list,
unordered_set<string> &named_subpaths);
static unique_ptr<SubqueryRef> GenerateSubpathPatternSubquery(
unique_ptr<PathPattern> &path_pattern, CreatePropertyGraphInfo *pg_table,
vector<unique_ptr<ParsedExpression>> &column_list,
unordered_set<string> &named_subpaths);

static unique_ptr<FunctionExpression> CreatePathFindingFunction(const string &prev_binding, const string &next_binding,
shared_ptr<PropertyGraphTable> &edge_table, const string &path_finding_udf);
static unique_ptr<FunctionExpression>
CreatePathFindingFunction(const string &prev_binding,
const string &next_binding,
shared_ptr<PropertyGraphTable> &edge_table,
const string &path_finding_udf);
};
} // namespace duckdb
Loading

0 comments on commit c5897e9

Please sign in to comment.