MaxGekk commented on code in PR #45291:
URL: https://github.com/apache/spark/pull/45291#discussion_r1504867772
##########
sql/api/src/main/scala/org/apache/spark/sql/errors/QueryParsingErrors.scala:
##########
@@ -387,6 +387,13 @@ private[sql] object QueryParsingErrors extends
DataTypeErrorsBase {
ctx)
}
+ def invalidStatementError(operation: String, ctx: ParserRuleContext):
Throwable = {
+ new ParseException(
+ errorClass = "INVALID_STATEMENT_OR_CLAUSE",
+ messageParameters = Map("operation" -> operation),
Review Comment:
How about to quote/wrap `operation` by `toSQLStmt()`.
--
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]