beliefer commented on a change in pull request #31920:
URL: https://github.com/apache/spark/pull/31920#discussion_r607478785
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryParsingErrors.scala
##########
@@ -303,4 +303,64 @@ object QueryParsingErrors {
new ParseException(s"Found duplicate keys '$key'.", ctx)
}
+ def formatForSetConfigurationUnExpectedError(ctx: SetConfigurationContext):
Throwable = {
+ new ParseException(
+ s"""
+ |Expected format is 'SET', 'SET key', or 'SET key=value'. If you want
to include
+ |special characters in key, or include semicolon in value, please use
quotes,
+ |e.g., SET `ke y`=`v;alue`.
+ """.stripMargin.replaceAll("\n", " "), ctx)
+ }
+
+ def invalidPropertyKeyForSetQuotedConfigurationError(
Review comment:
It seems we should keep
`invalidPropertyKeyForSetQuotedConfigurationError`.
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]