MCPcopy Index your code
hub / github.com/uber/aresdb / getLogicalBinaryOperator

Method getLogicalBinaryOperator

query/sql/sql_parser.go:1684–1693  ·  view source on GitHub ↗

getLogicalBinaryOperator returns an input token's logicalBinaryExpression operator type

(token int)

Source from the content-addressed store, hash-verified

1682
1683// getLogicalBinaryOperator returns an input token's logicalBinaryExpression operator type
1684func (v *ASTBuilder) getLogicalBinaryOperator(token int) tree.LogicalBinaryExpType {
1685 switch token {
1686 case antlrgen.SqlBaseLexerAND:
1687 return tree.AND
1688 case antlrgen.SqlBaseLexerOR:
1689 return tree.OR
1690 default:
1691 panic(fmt.Errorf("Unsupported operator: %v", token))
1692 }
1693}
1694
1695func (v *ASTBuilder) getJoinType(ctx *antlrgen.JoinRelationContext) tree.JoinType {
1696 var joinType tree.JoinType

Callers 2

VisitLogicalBinaryMethod · 0.95
hasORInPathMethod · 0.95

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected