1. [SPARK-37389][SQL][FOLLOWUP] SET command shuold not parse comments (details)
Commit 17c36a04c77a26194b5a5909dd540059af7be876 by wenchen
[SPARK-37389][SQL][FOLLOWUP] SET command shuold not parse comments

This PR is a followup of , to fix a breaking change. The SET command uses wildcard which may contain unclosed comment, e.g. `/path/to/*`, and we shouldn't fail it.

This PR fixes it by skipping the unclosed comment check if we are parsing SET command.

fix a breaking change

no, the breaking change is not released yet.

new tests

Closes #34763 from cloud-fan/set.

Authored-by: Wenchen Fan <>
Signed-off-by: Wenchen Fan <>
(cherry picked from commit eaa135870a30fb89c2f1087991328a6f72a1860c)
Signed-off-by: Wenchen Fan <>
The file was modifiedsql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/ParseDriver.scala (diff)
The file was modifiedsql/core/src/test/scala/org/apache/spark/sql/execution/SparkSqlParserSuite.scala (diff)
The file was modifiedsql/catalyst/src/main/antlr4/org/apache/spark/sql/catalyst/parser/SqlBase.g4 (diff)
The file was modifiedsql/core/src/main/scala/org/apache/spark/sql/execution/SparkSqlParser.scala (diff)