Description
PrepareService prepareDml cache does not take dynamic parameters into account which can potentially lead to runtime errors when different queries reuse the same plan.
private CompletableFuture<QueryPlan> prepareDml(SqlNode sqlNode, PlanningContext ctx) { var key = new CacheKey(ctx.schemaName(), sqlNode.toString()); ....
Expected behaviour: dml plan cache should take dynamic parameters/types of dynamic parameters into account.
Attachments
Attachments
Issue Links
- relates to
-
IGNITE-17765 Sql. Introduce cache for parsed statements
- Resolved