Skip to content

Commit

Permalink
clean match.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
SiberiaWolfP committed Feb 18, 2024
1 parent 470ad31 commit 9ef7574
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions duckpgq/src/duckpgq/functions/tablefunctions/match.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,6 @@ void PGQMatchFunction::AddPathFinding(

//! START
//! WHERE __x.temp + iterativelength(<csr_id>, (SELECT count(c.id)
//! from dst c, a.rowid, b.rowid) between lower and upper
//! from dst c, a.rowid, b.rowid, lower, upper)

auto src_row_id = make_uniq<ColumnRefExpression>("rowid", prev_binding);
Expand Down Expand Up @@ -690,18 +689,11 @@ void PGQMatchFunction::AddPathFinding(

auto addition_function =
make_uniq<FunctionExpression>("add", std::move(addition_children));
// auto lower_limit = make_uniq<ConstantExpression>(
// Value::INTEGER(static_cast<int32_t>(subpath->lower)));
// auto upper_limit = make_uniq<ConstantExpression>(
// Value::INTEGER(static_cast<int32_t>(subpath->upper)));
// auto between_expression = make_uniq<BetweenExpression>(
// std::move(addition_function), std::move(lower_limit),
// std::move(upper_limit));
conditions.push_back(std::move(addition_function));

//! END
//! WHERE __x.temp + iterativelength(<csr_id>, (SELECT count(s.id)
//! from src s, a.rowid, b.rowid) between lower and upper
//! from src s, a.rowid, b.rowid, lower, upper)
}

void PGQMatchFunction::CheckNamedSubpath(
Expand Down

0 comments on commit 9ef7574

Please sign in to comment.