senthilkv opened a new issue #10668:
URL: https://github.com/apache/druid/issues/10668


   ### Description
   
   Currently in Druid for  aggregation of currency based calculations has to be 
done using longSum, doubleSum or floatSum.  Especially doubleSum and floatSum 
could create issues on currency based aggregations such as rounding, truncation 
etc and cannot be relied up on precision and accuracy which could lead to 
potential loss in money on aggregation. 
   
   ### Motivation
   
   Compressed Big Decimal  is an extension which provides support for Mutable 
big decimal value that can be used to accumulate values without losing 
precision or reallocating memory. This type helps in absolute precision 
arithmetic on large numbers in applications, where  greater level of accuracy 
is required, such as financial applications, currency based transactions.  This 
helps avoid rounding issues where in potentially large amount of money can be 
lost.  Compressed big decimal is an absolute number based complex type based on 
big decimal in Java. This supports all the functionalities supported by Java 
Big Decimal.
   
   The extension will be submitted for review in the coming week.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to