v.21.1Improvements
All Decimal and Float Queries Allowed with Result Types Float32 or Float64
All queries of typeDecimal * Floator vice versa are allowed, including aggregate ones (e.g.SELECT sum(decimal_field * 1.1)orSELECT dec_col * float_col), the result type is Float32 or Float64. #18145 (Mike).
Why it matters
This feature resolves the limitation where multiplication betweenDecimal and Float types was not supported, enabling more flexible and accurate mathematical operations involving mixed numeric types, particularly in aggregate functions.How to use it
Users can directly write queries involving multiplication betweenDecimal and Float columns or constants, for example:SELECT sum(decimal_field 1.1)
SELECT dec_col float_colNo special settings are required; the feature is enabled by default.