MaxGekk commented on code in PR #47873:
URL: https://github.com/apache/spark/pull/47873#discussion_r1740001014
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryCompilationErrors.scala:
##########
@@ -3982,6 +3982,14 @@ private[sql] object QueryCompilationErrors extends
QueryErrorsBase with Compilat
messageParameters = Map("provider" -> name))
}
+ def externalDataSourceException(cause: Option[Throwable]): Throwable = {
Review Comment:
Let's don't overcomplicate the signature. If the caller pass `Throwable`
always, then let's adjust the signature:
```suggestion
def externalDataSourceException(cause: Throwable): Throwable = {
```
--
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]