cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Lerer (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-11935) Add support for arithmetic operators
Date Wed, 01 Jun 2016 14:10:59 GMT
Benjamin Lerer created CASSANDRA-11935:

             Summary: Add support for arithmetic operators
                 Key: CASSANDRA-11935
             Project: Cassandra
          Issue Type: Sub-task
            Reporter: Benjamin Lerer
            Assignee: Benjamin Lerer
             Fix For: 3.x

The goal of this ticket is to add support for arithmetic operators:
* {{-}}: Change the sign of the argument
* {{+}}: Addition operator
* {{-}}: Minus operator
* {{*}}: Multiplication operator
* {{/}}: Division operator
* {{%}}: Modulo operator

This ticket we should focus on adding operator only for numeric types to keep the scope as
small as possible. Dates and string operations will be adressed in follow up tickets.

The operation precedence should be:
# {{*}}, {{/}}, {{%}}
# {{+}}, {{-}}

Some implicit data conversion should be performed when operations are performed on different
types (e.g. double + int).

This message was sent by Atlassian JIRA

View raw message