Apache Tajo - Arithmetic Operators
Advertisements
The following sample queries are examples of arithmetic operators −
Query 1
default> select 4 + 5 as addition;
Result
The above query will generate the following output −
addition ------------------------------- 9
The query performs addition of two given values.
Query 2
default> select 4 % 2 as modulus;
Result
The above query will generate the following output.
modulus ------------------------------- 0
Output is returned as the modulus for given values. Similarly, you can perform other arithmetic operations.
apache_tajo_operators.htm
Advertisements