Jackie-Jiang commented on issue #8418:
URL: https://github.com/apache/pinot/issues/8418#issuecomment-1099563171

   Currently we store `BigDecimal` as bytes, but because the ordering of 
`BigDecimal` is different from bytes, we might have to introduce the 
`BigDecimal` into the data representation layer.
   Checked the decimal value support in other systems, and most of them support 
up to 38 precision digits. Wondering the reason behind that, and if we can 
store the value in 136-bit format (1 sign bit, 6 scale bit, 129 precision bits) 
if we also limit the 38 precision digits. If we can keep the ordering the same 
for `BigDecimal` and underlying bytes, we can reuse the bytes comparing logic 
and not introducing `BigDecimal` special ordering handling.


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to