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

Make some keywords reserved along with the ANSI/SQL standard

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.1.1
    • 3.0.0
    • SQL
    • None

    Description

      The current Spark has many non-reserved words that are essentially reserved in the ANSI/SQL standard (http://developer.mimer.se/validator/sql-reserved-words.tml).
      https://github.com/apache/spark/blob/master/sql/catalyst/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBase.g4#L709

      This is because there are many datasources (for instance twitter4j) that unfortunately use reserved keywords for column names (See hvanhovell's comments: https://github.com/apache/spark/pull/18079#discussion_r118842186). We might fix this issue in future major releases.

      Attachments

        Issue Links

          Activity

            People

              maropu Takeshi Yamamuro
              maropu Takeshi Yamamuro
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: