You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Maksim Zhuravkov (Jira)" <ji...@apache.org> on 2023/04/25 09:36:00 UTC

[jira] [Updated] (IGNITE-19358) Sql. PrepareServiceImpl prepareDML cache does not take dynamic parameters into account

     [ https://issues.apache.org/jira/browse/IGNITE-19358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maksim Zhuravkov updated IGNITE-19358:
--------------------------------------
    Labels: ignite-3  (was: )

> Sql. PrepareServiceImpl prepareDML cache does not take dynamic parameters into account
> --------------------------------------------------------------------------------------
>
>                 Key: IGNITE-19358
>                 URL: https://issues.apache.org/jira/browse/IGNITE-19358
>             Project: Ignite
>          Issue Type: Bug
>          Components: sql
>    Affects Versions: 3.0.0-alpha2
>            Reporter: Maksim Zhuravkov
>            Priority: Major
>              Labels: ignite-3
>
> PrepareService prepareDml cache does not take dynamic parameters into account which may leads to runtime errors when different queries reuse the same plan:
> {code:java}
>  @Test
>     public void test() {
>         sql("SELECT ? + 1", 1);
>         sql("SELECT ? + 1", 'X');
>     }
> {code}
> Error:
> {code:java}
> IGN-CMN-65535 TraceId:028c3d10-1840-4fa4-bad2-d1ed8498654a class java.lang.Character cannot be cast to class java.lang.Integer (java.lang.Character and java.lang.Integer are in module java.base of loader 'bootstrap')
> org.apache.ignite.lang.IgniteException: IGN-CMN-65535 TraceId:028c3d10-1840-4fa4-bad2-d1ed8498654a class java.lang.Character cannot be cast to class java.lang.Integer (java.lang.Character and java.lang.Integer are in module java.base of loader 'bootstrap')
> {code}
> Expected behaviour: dml plan cache should take dynamic parameters/types of dynamic parameters into account.



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