(expr *exprpb.Expr)
| 57 | } |
| 58 | |
| 59 | func (con *converter) visitCall(expr *exprpb.Expr) error { |
| 60 | c := expr.GetCallExpr() |
| 61 | fun := c.GetFunction() |
| 62 | switch fun { |
| 63 | // ternary operator |
| 64 | case operators.Conditional: |
| 65 | return con.visitCallConditional(expr) |
| 66 | // index operator |
| 67 | case operators.Index: |
| 68 | return con.visitCallIndex(expr) |
| 69 | // unary operators |
| 70 | case operators.LogicalNot, operators.Negate: |
| 71 | return con.visitCallUnary(expr) |
| 72 | // binary operators |
| 73 | case operators.Add, |
| 74 | operators.Divide, |
| 75 | operators.Equals, |
| 76 | operators.Greater, |
| 77 | operators.GreaterEquals, |
| 78 | operators.In, |
| 79 | operators.Less, |
| 80 | operators.LessEquals, |
| 81 | operators.LogicalAnd, |
| 82 | operators.LogicalOr, |
| 83 | operators.Multiply, |
| 84 | operators.NotEquals, |
| 85 | operators.OldIn, |
| 86 | operators.Subtract: |
| 87 | return con.visitCallBinary(expr) |
| 88 | // standard function calls. |
| 89 | default: |
| 90 | return con.visitCallFunc(expr) |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | var standardSQLBinaryOperators = map[string]string{ |
| 95 | operators.LogicalAnd: "AND", |
no test coverage detected