New Bug Encountered: expression assistant different with App

In a virtual column I have the simple test expression 20/16.
The column type is TEXT.
In the expression assistant, the result is โ€œ1โ€.
In the App the result is โ€œ1.25โ€.
I know I can workaround this by using FLOOR(20/16).
But in fact itโ€™s confusing, when the results are different.

1 3 271
3 REPLIES 3

Interesting

I just tried 20.0/16, thatโ€™s how you produce non-integer results in many languages. Expression assistant returns 1.25.

Given that the expression assistant often throws an error about type mismatch between the return value and the column type, I assume there are two different processors happening, one to produce the expression result, and one to cast it into the column type, if possible.

Iโ€™m not sure if this can be considered a โ€œbugโ€ or not. I suppose knowing the end result, and not the intermediate result would be better though.

When the result is different, it means there is a small bug. They should give the same result.

@adam FYI

Top Labels in this Space