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

Function maybeSQLQueryBody

compiler/semantic/sql.go:378–385  ·  view source on GitHub ↗
(pipe *ast.SQLPipe)

Source from the content-addressed store, hash-verified

376}
377
378func maybeSQLQueryBody(pipe *ast.SQLPipe) (ast.SQLQueryBody, bool) {
379 if len(pipe.Body) == 1 {
380 if op, ok := pipe.Body[0].(*ast.SQLOp); ok {
381 return op.Body, true
382 }
383 }
384 return nil, false
385}
386
387func applyAlias(sctx *super.Context, alias *ast.TableAlias, t relTable, seq sem.Seq) (sem.Seq, relTable, error) {
388 if alias == nil || t == badTable {

Callers 1

sqlFromPipeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected