Observation:
When we multiply using values - SELECT 1 / (10*1.0 - 5*1.0) the return value is a fraction. If however we use integer fields of a CrateDB table instead of fixed values, the return value is an INT but it should be a fraction.
This is working as expected. In CrateDB, the columns have higher priority in our type inference logic to avoid expensive queries. For E.g. where int_column = 8 (where 8 is a long) shouldn’t result in int_column::long = 8 , but the other way around to utilize the lucene index efficiently.