v.18.12New Feature
Decimal Type Enhancements: Support for Mathematical Functions
TheDecimaltype now supports mathematical functions (exp,sinand so on.) #3129
Why it matters
This feature enables users to perform precise mathematical calculations directly onDecimal type columns without needing to cast them to other data types, improving both accuracy and performance for numeric computations.How to use it
Users can directly apply supported mathematical functions likeexp(), sin(), etc., to Decimal columns in their SQL queries, for example:SELECT exp(decimal_column), sin(decimal_column) FROM table