MCPcopy
hub / github.com/uber/aresdb / getJoinType

Method getJoinType

query/sql/sql_parser.go:1695–1709  ·  view source on GitHub ↗
(ctx *antlrgen.JoinRelationContext)

Source from the content-addressed store, hash-verified

1693}
1694
1695func (v *ASTBuilder) getJoinType(ctx *antlrgen.JoinRelationContext) tree.JoinType {
1696 var joinType tree.JoinType
1697 if ctx.JoinType() == nil {
1698 joinType = tree.INNER
1699 } else if ctx.JoinType().(*antlrgen.JoinTypeContext).LEFT() != nil {
1700 joinType = tree.LEFT
1701 } else if ctx.JoinType().(*antlrgen.JoinTypeContext).RIGHT() != nil {
1702 joinType = tree.RIGHT
1703 } else if ctx.JoinType().(*antlrgen.JoinTypeContext).FULL() != nil {
1704 joinType = tree.FULL
1705 } else {
1706 joinType = tree.INNER
1707 }
1708 return joinType
1709}
1710
1711func (v *ASTBuilder) getCtxLevels(s2aCtx *SQL2AqlContext) (level, levelWith, levelQuery int) {
1712 level = s2aCtx.level + 1

Callers 1

VisitJoinRelationMethod · 0.95

Calls 4

LEFTMethod · 0.80
RIGHTMethod · 0.80
FULLMethod · 0.80
JoinTypeMethod · 0.45

Tested by

no test coverage detected