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

Function describe_select

src/sql/src/plan/statement/dml.rs:187–198  ·  view source on GitHub ↗
(
    scx: &StatementContext,
    stmt: SelectStatement<Aug>,
)

Source from the content-addressed store, hash-verified

185}
186
187pub fn describe_select(
188 scx: &StatementContext,
189 stmt: SelectStatement<Aug>,
190) -> Result<StatementDesc, PlanError> {
191 if let Some(desc) = side_effecting_func::describe_select_if_side_effecting(scx, &stmt)? {
192 return Ok(StatementDesc::new(Some(desc)));
193 }
194
195 let query::PlannedRootQuery { desc, .. } =
196 query::plan_root_query(scx, stmt.query, QueryLifetime::OneShot)?;
197 Ok(StatementDesc::new(Some(desc)))
198}
199
200pub fn plan_select(
201 scx: &StatementContext,

Callers 6

describeFunction · 0.85
describeMethod · 0.85
describe_explain_planFunction · 0.85
describe_copyFunction · 0.85

Calls 2

plan_root_queryFunction · 0.85

Tested by

no test coverage detected