virajjasani opened a new pull request, #2193:
URL: https://github.com/apache/phoenix/pull/2193

   Jira: PHOENIX-7641
   
   BSON supports various non-alphanumeric values as document field keys which 
are case sensitive. Not all can be used in the BSON_CONDITION_EXPRESSION() 
antlr grammar as the field key can have duplicate meaning with operator. e.g. 
">" is valid field key, therefore condition expression "> > :val" is valid 
because the expression tries to evaluate whether the value of ">" key is 
greater than the value represented by ":val" value placeholder. However, the 
antlr grammar needs to recognize ">" as only "greater-than" symbol to avoid 
ambiguity.
   
   For complex key names like this, it is recommended to provide them as key 
alias placeholders as part of the condition expression document argument, which 
already consists of value alias placeholders.
   
   Example:
   ```
   {
     "$EXPR": "#press = :press AND #track[0].#shot[2][0].#city.#standard[50] = 
:softly",
     "$VAL": {
       ":press": "beat",
       ":softly": "softly"
     },
     "$KEYS": {
       "#press": "press",
       "#track": "track",
       "#shot": "shot",
       "#city": "city",
       "#standard": "standard"
     }
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@phoenix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to