GitHub user manishnalla1994 opened a pull request:

    https://github.com/apache/carbondata/pull/2918

    [CARBONDATA-3098] Fix for negative exponents value giving wrong results in 
Float datatype

    Problem: When the value of exponent is a negative number then the data is 
incorrect due to loss of precision of Floating point values and wrong 
calculation of the count of decimal points.
    
    Solution: Handled floating point precision by converting it to double and 
counted the decimal count values as done in double datatype(using Big Decimal).
    
    Be sure to do all of the following checklist to help us incorporate 
    your contribution quickly and easily:
    
     - [ ] Any interfaces changed?
     
     - [ ] Any backward compatibility impacted?
     
     - [ ] Document update required?
    
     - [x] Testing done
           
     - [ ] For large changes, please consider breaking it into sub-tasks under 
an umbrella JIRA. 
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/manishnalla1994/carbondata FloatInfiniteFix

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/carbondata/pull/2918.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2918
    
----
commit 8d4ede90f5c47759485b34f1f20cec3bbdc32c15
Author: Manish Nalla <manishnalla1994@...>
Date:   2018-11-14T05:27:49Z

    Float negative exponents

----


---

Reply via email to