clintropolis opened a new pull request #10084:
URL: https://github.com/apache/druid/pull/10084


   ### Description
   
   This PR adds bitwise operators `&`, `|`, `~` to Druid native JSON query 
expressions. 
   
   `^` was already taken for power unfortunately, though I would be in favor of 
reworking it to a function so we can use `^` for xor and find an alternatively 
way to express the power operation.
   
   SQL support appears to be not possible until 
https://issues.apache.org/jira/browse/CALCITE-3732 settles, so unfortunately 
only native JSON queries are supported at this time.
   
   Related to #8560.
   
   <hr>
   
   This PR has:
   - [x] been self-reviewed.
   - [x] added documentation for new or modified features or behaviors.
   - [x] added unit tests or modified existing tests to cover new code paths, 
ensuring the threshold for [code 
coverage](https://github.com/apache/druid/blob/master/dev/code-review/code-coverage.md)
 is met.
   - [ ] added integration tests.
   - [ ] been tested in a test Druid cluster.
   
   <hr>
   
   ##### Key changed/added classes in this PR
    * expression grammar file
    * `Expr`
    * `ExprListenerImpl`
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to