You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Vladimir Steshin (Jira)" <ji...@apache.org> on 2024/10/21 22:57:00 UTC
[jira] [Created] (IGNITE-23512) Calcite. Wrong scale and cast of NUMERIC type
Vladimir Steshin created IGNITE-23512:
-----------------------------------------
Summary: Calcite. Wrong scale and cast of NUMERIC type
Key: IGNITE-23512
URL: https://issues.apache.org/jira/browse/IGNITE-23512
Project: Ignite
Issue Type: Bug
Reporter: Vladimir Steshin
Reproducer:
{code:java}
@Test
public void testDecimalLiteral() {
// Fails. Returns an integer, not big decimal.
assertQuery("SELECT DECIMAL '10'").returns(new BigDecimal(("10"))).check();
// Fails. Returns 0.00 instead of 0.0.
assertQuery("SELECT CASE WHEN false THEN DECIMAL '1.00' ELSE DECIMAL '0.0' END")
.returns(new BigDecimal("0.0")).check();
}
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)