Hi all,

I wrote a requirement doc (in English) for arithmetic operations in SELECT 
clauses, you can find the doc here [1]. 

I'm not sure about one place: whether the arithmetic result type can be set as 
DOUBLE. 

Using DOUBLE as the result type has several advantages in the development 
(especially for the first version of the feature): 
1. It is relatively simple to implement.
2. No need to worry about the overflow of the calculation result.
3. It can efficiently handle the case where the divisor is 0 in the division 
operation and the modulo operation.

But I also have some concerns. I don??t know if this is friendly enough for 
various industrial scenarios.

Please leave your comments here if you have any ideas :)

Thanks,
Steve Su

[1] requirement doc: 
https://cwiki.apache.org/confluence/display/IOTDB/Arithmetic+Operations+In+SELECT+Clauses
[2] github issue: https://github.com/apache/iotdb/issues/1855
[3] jira: https://issues.apache.org/jira/browse/IOTDB-1022

Reply via email to