MaxGekk commented on code in PR #42632:
URL: https://github.com/apache/spark/pull/42632#discussion_r1307220438
##########
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:
One of purposes of gathering exceptions to `Query*Errors` to don't depend on
forming exceptions: errors classes, quoting, context and so on. The caller has
to provide only valuable info and don't worry about any technical stuff.
Don't think that this PR is right place to begin don't do that.
--
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]