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

Function parse_union

src/expr-parser/src/parser.rs:605–614  ·  view source on GitHub ↗
(ctx: CtxRef, input: ParseStream)

Source from the content-addressed store, hash-verified

603 }
604
605 fn parse_union(ctx: CtxRef, input: ParseStream) -> Result {
606 let union = input.parse::<kw::Union>()?;
607
608 let parse_inputs = ParseChildren::new(input, union.span().start());
609 let mut children = parse_inputs.parse_many(ctx, parse_expr)?;
610 let inputs = children.split_off(1);
611 let base = Box::new(children.into_element());
612
613 Ok(MirRelationExpr::Union { base, inputs })
614 }
615
616 fn parse_arrange_by(ctx: CtxRef, input: ParseStream) -> Result {
617 let arrange_by = input.parse::<kw::ArrangeBy>()?;

Callers 1

parse_exprFunction · 0.85

Calls 4

spanMethod · 0.80
parse_manyMethod · 0.80
into_elementMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected