Uploaded image for project: 'Apache Trafodion (Retired)'
  1. Apache Trafodion (Retired)
  2. TRAFODION-2367

Fix documentation issues with Explain

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1-incubating
    • 2.1-incubating
    • documentation, sql-cmp
    • None

    Description

      Because of an oddity in the parser, it is possible to use some non-reserved keywords as statement names in PREPARE and EXECUTE statements, but not in EXPLAIN. Though one can still use the statement name in EXPLAIN if the delimited identifier format is used. For example:

      prepare c from select count from t1;
      explain options 'f' c; <--- fails with a syntax error; C is a non-reserved keyword
      explain options 'f' "C"; <--- works fine
      execute c; <--- works fine

      This oddity needs to be documented. (It would be nice too if it could be fixed, or at least reduced in frequency.)

      Also, Trafodion supports explain + query text, but the manual does not document this.

      Attachments

        Issue Links

          Activity

            People

              dbirdsall Dave Birdsall
              dbirdsall Dave Birdsall
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: