anchovYu commented on a change in pull request #35915:
URL: https://github.com/apache/spark/pull/35915#discussion_r831316199
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/SparkParserErrorStrategy.scala
##########
@@ -49,6 +48,10 @@ class SparkRecognitionException(
},
Some(errorClass),
messageParameters)
+
+ /** Construct with pure errorClass and messageParameter information. */
+ def this(errorClass: String, messageParameters: Array[String]) =
Review comment:
That's a good question. I leave it here in case that in the future we
want to make more create syntax error types, or we want to handle other rest
exceptions (there should still be at least one) different from the current
`PARSE_SYNTAX_ERROR`.
I think I can still keep this parameter, but give this parameter a default
value, so all existing calls don't need to pass the `PARSE_SYNTAX_ERROR`
explicitly. Thanks.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]