Skip to content

Commit

Permalink
fix build fail
Browse files Browse the repository at this point in the history
  • Loading branch information
SiberiaWolfP committed Feb 29, 2024
1 parent ded74bd commit 9741705
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions duckpgq/include/duckpgq/duckpgq_functions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ class DuckPGQFunctions {
functions.push_back(GetCheapestPathLengthFunction());
functions.push_back(GetShortestPathFunction());
functions.push_back(GetShortestPathLowerBoundFunction());
functions.push_back(GetShortestPathTwoPhaseFunction());
functions.push_back(GetReachabilityFunction());
functions.push_back(GetIterativeLengthFunction());
functions.push_back(GetIterativeLengthLowerBoundFunction());
functions.push_back(GetIterativeLengthTwoPhaseFunction());
functions.push_back(GetIterativeLengthBidirectionalFunction());
functions.push_back(GetIterativeLength2Function());
functions.push_back(GetDeleteCsrFunction());
Expand Down Expand Up @@ -60,9 +62,11 @@ class DuckPGQFunctions {
static CreateScalarFunctionInfo GetCheapestPathLengthFunction();
static CreateScalarFunctionInfo GetShortestPathFunction();
static CreateScalarFunctionInfo GetShortestPathLowerBoundFunction();
static CreateScalarFunctionInfo GetShortestPathTwoPhaseFunction();
static CreateScalarFunctionInfo GetReachabilityFunction();
static CreateScalarFunctionInfo GetIterativeLengthFunction();
static CreateScalarFunctionInfo GetIterativeLengthLowerBoundFunction();
static CreateScalarFunctionInfo GetIterativeLengthTwoPhaseFunction();
static CreateScalarFunctionInfo GetIterativeLengthBidirectionalFunction();
static CreateScalarFunctionInfo GetIterativeLength2Function();
static CreateScalarFunctionInfo GetDeleteCsrFunction();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ static int64_t IterativeLengthInternal(int64_t lane, int64_t v_size, int64_t des
return -1;
}

static void IterativeLengthLowerBoundFunction(DataChunk &args, ExpressionState &state,
static void IterativeLengthTwoPhaseFunction(DataChunk &args, ExpressionState &state,
Vector &result) {
auto &func_expr = (BoundFunctionExpression &)state.expr;
auto &info = (IterativeLengthFunctionData &)*func_expr.bind_info;
Expand Down Expand Up @@ -233,12 +233,12 @@ static void IterativeLengthLowerBoundFunction(DataChunk &args, ExpressionState &
}

CreateScalarFunctionInfo
DuckPGQFunctions::GetIterativeLengthLowerBoundFunction() {
DuckPGQFunctions::GetIterativeLengthTwoPhaseFunction() {
auto fun = ScalarFunction(
"iterativelength_two_phase",
{LogicalType::INTEGER, LogicalType::BIGINT, LogicalType::BIGINT,
LogicalType::BIGINT, LogicalType::BIGINT, LogicalType::BIGINT},
LogicalType::BIGINT, IterativeLengthLowerBoundFunction,
LogicalType::BIGINT, IterativeLengthTwoPhaseFunction,
IterativeLengthFunctionData::IterativeLengthBind);
return CreateScalarFunctionInfo(fun);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ static std::tuple<int64_t, vector<int64_t>> ShortestPathInternal(int64_t lane, i
return std::make_tuple(-1, result);
}

static void ShortestPathLowerBoundFunction(DataChunk &args, ExpressionState &state,
static void ShortestPathTwoPhaseFunction(DataChunk &args, ExpressionState &state,
Vector &result) {
auto &func_expr = (BoundFunctionExpression &)state.expr;
auto &info = (IterativeLengthFunctionData &)*func_expr.bind_info;
Expand Down Expand Up @@ -320,13 +320,13 @@ static void ShortestPathLowerBoundFunction(DataChunk &args, ExpressionState &sta
}

CreateScalarFunctionInfo
DuckPGQFunctions::GetShortestPathLowerBoundFunction() {
DuckPGQFunctions::GetShortestPathTwoPhaseFunction() {
auto fun = ScalarFunction(
"shortestpath_two_phase",
{LogicalType::INTEGER, LogicalType::BIGINT, LogicalType::BIGINT,
LogicalType::BIGINT, LogicalType::BIGINT, LogicalType::BIGINT},
LogicalType::LIST(LogicalType::BIGINT),
ShortestPathLowerBoundFunction,
ShortestPathTwoPhaseFunction,
IterativeLengthFunctionData::IterativeLengthBind);
return CreateScalarFunctionInfo(fun);
}
Expand Down

0 comments on commit 9741705

Please sign in to comment.