cloud-fan commented on code in PR #42632:
URL: https://github.com/apache/spark/pull/42632#discussion_r1307136675
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryCompilationErrors.scala:
##########
@@ -157,6 +157,15 @@ private[sql] object QueryCompilationErrors extends
QueryErrorsBase with Compilat
"functionName" -> toSQLId("format_string")))
}
+ def binaryFormatError(funcName: String, invalidFormat: String): Throwable = {
+ new AnalysisException(
Review Comment:
My feeling is that, if the error is only thrown in one place, we don't need
to add a method here, just `throw new AnalysisException...` in the caller side.
--
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]