srowen commented on a change in pull request #21790: [SPARK-24544][SQL] Print 
actual failure cause when look up function failed
URL: https://github.com/apache/spark/pull/21790#discussion_r244588912
 
 

 ##########
 File path: 
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalogSuite.scala
 ##########
 @@ -1445,4 +1445,12 @@ abstract class SessionCatalogSuite extends AnalysisTest 
{
       }
     }
   }
+
+  test("SPARK-24544: test print actual failure cause when look up function 
failed") {
+    withBasicCatalog { catalog =>
+      intercept[NoSuchFunctionException] {
 
 Review comment:
   Does this test anything about the cause of the exception? maybe get the 
`cause` and assert about its message?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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]

Reply via email to