You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Konstantin Orlov (Jira)" <ji...@apache.org> on 2024/03/15 08:32: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 ]
Konstantin Orlov updated IGNITE-19358:
--------------------------------------
Labels: ignite-3 (was: calcite3-required ignite-3)
> 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 can potentially lead to runtime errors when different queries reuse the same plan.
> {code:java}
> private CompletableFuture<QueryPlan> prepareDml(SqlNode sqlNode, PlanningContext ctx) {
> var key = new CacheKey(ctx.schemaName(), sqlNode.toString());
> ....
> {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)