dtenedor opened a new pull request, #38418: URL: https://github.com/apache/spark/pull/38418
### What changes were proposed in this pull request? Relax ordering constraint for CREATE TABLE column options. Before this PR, the grammar for each CREATE TABLE column was: ``` createOrReplaceTableColType : colName=errorCapturingIdentifier dataType (NOT NULL)? defaultExpression? commentSpec? ; ``` ### Why are the changes needed? There was a constraint on the order of: `(NOT NULL, DEFAULT value, COMMENT value)`. This PR updates the grammar to allow these options in any order instead, to improve usability. ### Does this PR introduce _any_ user-facing change? Yes, the SQL syntax updates slightly. ### How was this patch tested? Existing parser tests plus a new unit test. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org