Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-18645

Sql. Type System. Reject plans with not matching dynamic parameters types during query validation.

    XMLWordPrintableJSON

Details

    • 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

          Activity

            People

              Unassigned Unassigned
              mzhuravkov Maksim Zhuravkov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: