Uploaded image for project: 'Teiid Designer'
  1. Teiid Designer
  2. TEIIDDES-3034

Importing Virtual Procedure DDL containing a simple RETURNS type add a Result Set to procedure

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 11.1.2
    • None
    • None
    • None

      testing and debugging for TEIIDDES-2783 exposed an issue when importing a procedure containing a RETURNS data type and no result set.

      The transformation resolving framework contains logic that will auto-create a result set containing a generated column.

      We need to catch this use-case and prevent the result set from being created using this simple DDL input

      CREATE VIRTUAL PROCEDURE ProcedureWithRS (
         stringIN string(4000) OPTIONS(ANNOTATION 'parameter 1 description')
      ) RETURNS string(255) OPTIONS(ANNOTATION 'Example') AS
      BEGIN
      	SELECT stringIN AS result;
      END
      

        1. viewModelFromComment.png
          48 kB
          Matej Kralik
        2. viewModelFromDescription.png
          38 kB
          Matej Kralik

              blafond Barry LaFond
              blafond Barry LaFond
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: