MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / extract_join_on_condition

Function extract_join_on_condition

nodedb-sql/src/planner/cte.rs:494–504  ·  view source on GitHub ↗
(op: &ast::JoinOperator)

Source from the content-addressed store, hash-verified

492}
493
494fn extract_join_on_condition(op: &ast::JoinOperator) -> Option<&ast::Expr> {
495 use ast::JoinOperator::*;
496 let constraint = match op {
497 Inner(c) | LeftOuter(c) | RightOuter(c) | FullOuter(c) => c,
498 _ => return None,
499 };
500 match constraint {
501 ast::JoinConstraint::On(expr) => Some(expr),
502 _ => None,
503 }
504}
505
506fn plan_cte_branch(
507 expr: &SetExpr,

Callers 1

extract_recursive_infoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected