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

Sql. Dynamic parameters. Inferred types of dynamic parameters are not used by the execution runtime.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.0
    • sql

    Description

      Rewrite validation dynamic parameters by moving type checking of dynamic parameters to TypeCoercion.
      Introduce type compatibly checks for dynamic parameters:

      OK: SELECT * FROM t WHERE int_col = ?:int
      
      OK: SELECT * FROM t WHERE int_col = ?:smallint
      SELECT * FROM t WHERE int_col = cast(?:smallint, int)
      
      ERR: SELECT * FROM t WHERE int_col = ?:str
      ERR: SELECT * FROM t WHERE str_col = ?:int
      
      ERR: SELECT 1 + ?:str
      ERR: SELECT ?:str + ?:str
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 10m
                  2h 10m