HeartSaVioR commented on a change in pull request #26994: [SPARK-30339][SQL]
Avoid to fail twice in function lookup
URL: https://github.com/apache/spark/pull/26994#discussion_r361847807
##########
File path:
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveSessionCatalog.scala
##########
@@ -117,12 +117,25 @@ private[sql] class HiveSessionCatalog(
try {
lookupFunction0(name, children)
} catch {
- case NonFatal(_) =>
Review comment:
At least this patch will throw origin exception if there's no matching
DecimalType which will be same as what @maropu is suggested, and if we would
like to avoid calling lookup0 if it doesn't need to, throwing origin exception
would be enough which can be done with not matching the case.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]