srielau commented on code in PR #45291:
URL: https://github.com/apache/spark/pull/45291#discussion_r1504996377


##########
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:
   Done. I cannot yet remove the temp because there are more cases where the 
message should be dispatched to an unsupported feature with subclass. May do 
these in a separate PR.



-- 
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]

Reply via email to