Details
-
Sub-task
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
Description
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).
Attachments
Issue Links
- is depended upon by
-
CASSANDRA-11936 Add support for + and - operations on dates
- Resolved
- is duplicated by
-
CASSANDRA-11946 Use the return type when resolving function on ambiguous calls
- Resolved