Vladimir Steshin created IGNITE-23516:
-----------------------------------------

             Summary: Calcite. Unify rounding of numerics.
                 Key: IGNITE-23516
                 URL: https://issues.apache.org/jira/browse/IGNITE-23516
             Project: Ignite
          Issue Type: Bug
            Reporter: Vladimir Steshin


The rounding mode for different numeric types should be the same. Consider:

{code:java}
// Returns 1
select CAST(1.6 as BIGINT)
{code}

but

{code:java}
// Returns 2
select CAST(1.6 as DECIMAL(1))
{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to