Skip to content

Commit

Permalink
relax outer get table function requirement in lateral join optimizer
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxxen committed Oct 21, 2024
1 parent b38c209 commit 9b53289
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/hnsw/hnsw_optimize_join.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,6 @@ bool HNSWIndexJoinOptimizer::TryOptimize(Binder &binder, ClientContext &context,
MATCH_OPERATOR(delim_join.children[1], LOGICAL_GET, 0);
auto outer_get_ptr = &delim_join.children[1];
auto &outer_get = (*outer_get_ptr)->Cast<LogicalGet>();
if (outer_get.function.name != "seq_scan") {
return false;
}

// branch
// There might not be a projection here if we keep the distance function.
Expand Down

0 comments on commit 9b53289

Please sign in to comment.