Github user petercdc commented on a diff in the pull request:
https://github.com/apache/phoenix/pull/101#discussion_r36494905
--- Diff: phoenix-core/src/main/antlr3/PhoenixSQL.g ---
@@ -808,7 +808,14 @@ bind_expression returns [BindParseNode ret]
;
value_expression returns [ParseNode ret]
- : i=add_expression { $ret = i; }
+ : i=pre_value_expression { $ret = i; }
--- End diff --
for example:
````
json_column_a -> 'a' ? json_column_b -> 'b' + 5
````
(skip type checking)
if we consider that first to get JSON value than plus 5 ,and than check
existing JSON key/value(JSON array index), we should make that JSON value
operation precedes JSON boolean operation and JSON value operation precedes
arithmetic.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---