MCPcopy Create free account
hub / github.com/brimdata/super / onSQLBodySetOp1

Method onSQLBodySetOp1

compiler/parser/parser.go:23319–23334  ·  view source on GitHub ↗
(first, rest any)

Source from the content-addressed store, hash-verified

23317}
23318
23319func (c *current) onSQLBodySetOp1(first, rest any) (any, error) {
23320 out := first.(ast.SQLQueryBody)
23321 for _, o := range rest.([]any) {
23322 o := o.([]any)
23323 right := o[2].(ast.SQLQueryBody)
23324 out = &ast.SQLUnion{
23325 Kind: "SQLUnion",
23326 Distinct: o[0].(bool),
23327 Left: out,
23328 Right: right,
23329 Loc: ast.Loc{First: out.Pos(), Last: right.End()},
23330 }
23331 }
23332 return out, nil
23333
23334}
23335
23336func (p *parser) callonSQLBodySetOp1() (any, error) {
23337 stack := p.vstack[len(p.vstack)-1]

Callers 1

callonSQLBodySetOp1Method · 0.80

Calls 2

PosMethod · 0.65
EndMethod · 0.65

Tested by

no test coverage detected