Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
Docs Required, Release Notes Required
Description
Current implementation of dynamic parameters does not allow to reject plans that may fail runtime. Solution:
- dynamic parameters can be casted to appropriate types depending on the current context. If E1 with operand O1 expects a type T1 dynamic parameter D1 must be explicitly casted to T1 if it is possible. And if a cast is not possible a query must be rejected.
- in order to make type inference/type coercion possible we should use types of concrete values of dynamic parameters specified with a query.
This is a topic for discussion and investigation.
Attachments
Issue Links
- relates to
-
IGNITE-18644 Sql. Type system. Types in predicate expressions may have unnecessary casts.
- Open
-
IGNITE-18831 Sql. Dynamic parameters. Inferred types of dynamic parameters are not used by the execution runtime.
- Resolved