[
https://issues.apache.org/jira/browse/PHOENIX-2144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14661413#comment-14661413
]
ASF GitHub Bot commented on PHOENIX-2144:
-----------------------------------------
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.
> Implement JSON operators
> -------------------------
>
> Key: PHOENIX-2144
> URL: https://issues.apache.org/jira/browse/PHOENIX-2144
> Project: Phoenix
> Issue Type: Sub-task
> Reporter: Thomas D'Silva
> Assignee: petercdc
> Fix For: 4.4.1
>
>
> See http://www.postgresql.org/docs/9.4/static/functions-json.html
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)