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

Function plan_list_subquery

src/sql/src/plan/query.rs:4637–4659  ·  view source on GitHub ↗
(
    ecx: &ExprContext,
    query: &Query<Aug>,
)

Source from the content-addressed store, hash-verified

4635}
4636
4637fn plan_list_subquery(
4638 ecx: &ExprContext,
4639 query: &Query<Aug>,
4640) -> Result<CoercibleScalarExpr, PlanError> {
4641 plan_vector_like_subquery(
4642 ecx,
4643 query,
4644 |_| false,
4645 |elem_type| ListCreate { elem_type }.into(),
4646 |order_by| AggregateFunc::ListConcat { order_by },
4647 expr_func::ListListConcat.into(),
4648 |elem_type| {
4649 HirScalarExpr::literal(
4650 Datum::empty_list(),
4651 SqlScalarType::List {
4652 element_type: Box::new(elem_type),
4653 custom_id: None,
4654 },
4655 )
4656 },
4657 "list",
4658 )
4659}
4660
4661fn plan_array_subquery(
4662 ecx: &ExprContext,

Callers 1

plan_expr_innerFunction · 0.85

Calls 1

Tested by

no test coverage detected