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

Method sqlCrossJoin

compiler/semantic/sql.go:551–559  ·  view source on GitHub ↗
(join *ast.SQLCrossJoin, seq sem.Seq)

Source from the content-addressed store, hash-verified

549}
550
551func (t *translator) sqlCrossJoin(join *ast.SQLCrossJoin, seq sem.Seq) (sem.Seq, relScope) {
552 if len(seq) > 0 {
553 // At some point we might want to let parent data flow into a join somehow,
554 // but for now we flag an error.
555 t.error(join, errors.New("SQL cross join cannot inherit data from pipeline parent"))
556 }
557 leftSeq, leftSchema := t.sqlTableExpr(join.Left, nil)
558 return t.sqlAppendCrossJoin(join, leftSeq, leftSchema, join.Right)
559}
560
561func (t *translator) sqlAppendCrossJoin(node ast.Node, leftSeq sem.Seq, leftScope relScope, rhs ast.SQLTableExpr) (sem.Seq, relScope) {
562 rightSeq, rightScope := t.sqlTableExpr(rhs, nil)

Callers 1

sqlTableExprMethod · 0.95

Calls 4

sqlTableExprMethod · 0.95
sqlAppendCrossJoinMethod · 0.95
NewMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected