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

Relax ordering constraint for CREATE TABLE column options

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • SQL
    • None

    Description

      Currently the grammar for each CREATE TABLE column is:

      createOrReplaceTableColType
      : colName=errorCapturingIdentifier dataType (NOT NULL)? defaultExpression? commentSpec?
      ;

      This enforces a constraint on the order of: (NOT NULL, DEFAULT value, COMMENT value). We can update the grammar to allow these options in any order instead, to improve usability.

      Attachments

        Activity

          People

            dtenedor Daniel
            dtenedor Daniel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: