Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-49757

SET CATALOG syntax doesn't support IDENTIFIER

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.0.0
    • 4.0.0
    • SQL

    Description

      Since IDENTIFIER clause was added a lot of gaps remain. One of them is SET CATALOG syntax added in https://issues.apache.org/jira/browse/SPARK-36841

      Now SET CATALOG IDENTIFIER('test') will fall with

      [INVALID_SET_SYNTAX] Expected format is 'SET', 'SET key', or 'SET key=value'...

      Parser can't match SET CATALOG with an identifier but can match next "setConfiguration" grammar, what makes the error even more confusing.

      It would be nice to support identifier in this context as well.

       

      Attachments

        Issue Links

          Activity

            People

              mikhailnik Mikhail Nikoliukin
              mikhailnik Mikhail Nikoliukin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: