-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
SQLSQL engine featuresSQL engine featuresopen sourceOpen source featuresOpen source featuresstorageStorage engine core featuresStorage engine core features
Description
We are settled on FixedDecimal128 - 128-bit integer backed decimal with fixed scale. Scale value is stored in column metadata. This type will support the following arithmetic operations:
- addition
- subtraction
- multiplication
- division
These operations will be able to temporarily increase the storage during calculations to avoid numeric overflows while performing arithmetic on values with vastly different scale.
Operations will also avoid rounding issues typically associated with IEEE754 and will perform very closely to the expected accuracy.
While computation is extremely optimised, it will be much slower than for the existing DOUBLE type. This is due to DOUBLE being supported by CPU hardware, while FixedDecimal128 operations are emulated in QuestDB code.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
SQLSQL engine featuresSQL engine featuresopen sourceOpen source featuresOpen source featuresstorageStorage engine core featuresStorage engine core features
Type
Projects
Status
Shipped