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

Function is_lateral_derived

nodedb-sql/src/planner/lateral/plan.rs:284–286  ·  view source on GitHub ↗

True when a `TableFactor` is a LATERAL derived subquery.

(factor: &ast::TableFactor)

Source from the content-addressed store, hash-verified

282
283/// True when a `TableFactor` is a LATERAL derived subquery.
284pub fn is_lateral_derived(factor: &ast::TableFactor) -> bool {
285 matches!(factor, ast::TableFactor::Derived { lateral: true, .. })
286}
287
288/// Extract the subquery from a `TableFactor::Derived`.
289pub fn subquery_from_factor(factor: &ast::TableFactor) -> Option<&ast::Query> {

Callers 2

plan_join_from_selectFunction · 0.85
plan_selectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected