MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / empty_derived_context

Method empty_derived_context

src/sql/src/plan/query.rs:6619–6623  ·  view source on GitHub ↗

Derives a `QueryContext` for a scope that contains no columns.

(&self)

Source from the content-addressed store, hash-verified

6617
6618 /// Derives a `QueryContext` for a scope that contains no columns.
6619 fn empty_derived_context(&self) -> QueryContext<'a> {
6620 let scope = Scope::empty();
6621 let ty = SqlRelationType::empty();
6622 self.derived_context(scope, ty)
6623 }
6624
6625 /// Resolves `object` to a table expr, i.e. creating a `Get` or inlining a
6626 /// CTE.

Callers 1

plan_rows_from_internalFunction · 0.80

Calls 1

derived_contextMethod · 0.80

Tested by

no test coverage detected