-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/21985/#review44338
-----------------------------------------------------------



exec/java-exec/src/main/codegen/data/MathFunc.tdd
<https://reviews.apache.org/r/21985/#comment78708>

    Wouldn't this cause a loss of data? Double can represent approximately 1.8 
* (10 ^ 308), simply casting it to long (which can represent only 19 digits) 
will cause loss of integer digits. Your change specifically isn't introducing 
this problem, seems like this issue always existed. 
    
    Might be better to use a java function to truncate the fractional digits 
but still return double / float depending on the input. 
    
      


- Mehant Baid


On May 28, 2014, 7:05 p.m., Yash Sharma wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/21985/
> -----------------------------------------------------------
> 
> (Updated May 28, 2014, 7:05 p.m.)
> 
> 
> Review request for drill, Aditya Kishore, Mehant Baid, and Timothy Chen.
> 
> 
> Repository: drill-git
> 
> 
> Description
> -------
> 
> Drill-708: trunc(num) bugfix
> 
> 
> Diffs
> -----
> 
>   exec/java-exec/src/main/codegen/data/MathFunc.tdd 228d207 
> 
> Diff: https://reviews.apache.org/r/21985/diff/
> 
> 
> Testing
> -------
> 
> Yes. On Sqlline.
> 
> 
> Thanks,
> 
> Yash Sharma
> 
>

Reply via email to