nija-at opened a new pull request, #42500:
URL: https://github.com/apache/spark/pull/42500

   ### What changes were proposed in this pull request?
   
   Improve the error messaging on the connect client when using
   a UDF whose corresponding class has not been sync'ed with the
   spark connect service.
   
   Prior to this change, the client receives a cryptic error:
   
   ```
   Exception in thread "main" org.apache.spark.SparkException: Main$
   ```
   
   With this change, the message is improved to be:
   
   ```
   Exception in thread "main" org.apache.spark.SparkException: Failed to load 
class: Main$. Make sure the artifact where the class is defined is installed by 
calling session.addArtifact.
   ```
   
   ### Why are the changes needed?
   
   This change makes it clear to the user on what the error is.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. The error message is improved. See details above.
   
   ### How was this patch tested?
   
   Manually by running a connect server and client.
   
   


-- 
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]

Reply via email to