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/03 18:42:00 UTC
[jira] [Updated] (IGNITE-23361) Calcite. Incorrect coercion of dynamic paramerets
[ https://issues.apache.org/jira/browse/IGNITE-23361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vladimir Steshin updated IGNITE-23361:
--------------------------------------
Affects Version/s: 2.14
> Calcite. Incorrect coercion of dynamic paramerets
> -------------------------------------------------
>
> Key: IGNITE-23361
> URL: https://issues.apache.org/jira/browse/IGNITE-23361
> Project: Ignite
> Issue Type: Bug
> Affects Versions: 2.14
> Reporter: Vladimir Steshin
> Priority: Major
> Labels: calcite, ignite-3, ise
>
> Reproducer:
> {code:java}
> @Test
> public void test() {
> //Exprected 'ab'
> assertQuery("SELECT CAST(? AS VARCHAR(2))").withParams("abcd").returns("ab").check();
> }
> {code}
> {code:java}
> @Test
> public void test0(){
> // A conversion error is expected.
> assertQuery("SELECT CAST(? AS DECIMAL(2))").withParams(new BigDecimal("123")).check();
> }
> {code}
> Adoption of #IGNITE-19353
--
This message was sent by Atlassian Jira
(v8.20.10#820010)