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

Function describe_explain_timestamp

src/sql/src/plan/statement/dml.rs:518–528  ·  view source on GitHub ↗
(
    scx: &StatementContext,
    ExplainTimestampStatement { select, .. }: ExplainTimestampStatement<Aug>,
)

Source from the content-addressed store, hash-verified

516}
517
518pub fn describe_explain_timestamp(
519 scx: &StatementContext,
520 ExplainTimestampStatement { select, .. }: ExplainTimestampStatement<Aug>,
521) -> Result<StatementDesc, PlanError> {
522 let relation_desc = RelationDesc::builder()
523 .with_column("Timestamp", SqlScalarType::String.nullable(false))
524 .finish();
525
526 Ok(StatementDesc::new(Some(relation_desc))
527 .with_params(describe_select(scx, select)?.param_types))
528}
529
530pub fn describe_explain_schema(
531 _: &StatementContext,

Callers 1

describeFunction · 0.85

Calls 5

describe_selectFunction · 0.85
with_columnMethod · 0.80
with_paramsMethod · 0.80
finishMethod · 0.45
nullableMethod · 0.45

Tested by

no test coverage detected