Iurii Gerzhedovich created IGNITE-23198:
-------------------------------------------
Summary: Sql. Saturated casts don't work for negative approximated
types
Key: IGNITE-23198
URL: https://issues.apache.org/jira/browse/IGNITE-23198
Project: Ignite
Issue Type: Improvement
Components: sql
Reporter: Iurii Gerzhedovich
We have a few muted tests under IGNITE-19858, however, the issue has already
been fixed.
However, the issue is the incorrect work of saturated casts for negative
decimal and real types.
For some reason, the parser returns RexCall with the minus operation and
literal for such approximate negative literals.
Here are different approaches to fixing the issue:
1. Figure out why the parser has such behavior for literals like
'-340282346638528860000000000000000000000.000000000000000000000000000000000000000000001401298464324817::REAL'
.
2. Fix org.apache.ignite.internal.sql.engine.util.RexUtils#toSaturatedValue to
handle such wrapped literals.
3. Something else.
So, need to find mention of IGNITE-19858 ticket to start fixing it.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)