You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use DuckDb as a cache in pre-aggregation and there are some rounding issues with decimals.
When we parse a statement, we need an option ParsingOptions to decide the decimal casting strategy.
Sample SQL:
SELECT * FROM MY_TABLE WHERE DECIMAL_FIELD = 1.23
AS_DOUBLE: rewritten as SELECT * FROM MY_TABLE WHERE DECIMAL_FIELD = 1.23E0 AS_DECIMAL: rewritten as SELECT * FROM MY_TABLE WHERE DECIMAL_FIELD = DECIMAL '1.23'
The text was updated successfully, but these errors were encountered:
We use DuckDb as a cache in pre-aggregation and there are some rounding issues with decimals.
When we parse a statement, we need an option
ParsingOptions
to decide the decimal casting strategy.Sample SQL:
AS_DOUBLE
: rewritten asSELECT * FROM MY_TABLE WHERE DECIMAL_FIELD = 1.23E0
AS_DECIMAL
: rewritten asSELECT * FROM MY_TABLE WHERE DECIMAL_FIELD = DECIMAL '1.23'
The text was updated successfully, but these errors were encountered: