jdesjean commented on code in PR #41443:
URL: https://github.com/apache/spark/pull/41443#discussion_r1263919432


##########
connector/connect/server/src/main/scala/org/apache/spark/sql/connect/service/SparkConnectService.scala:
##########
@@ -120,33 +120,41 @@ class SparkConnectService(debug: Boolean)
       opType: String,
       observer: StreamObserver[V],
       userId: String,
-      sessionId: String): PartialFunction[Throwable, Unit] = {
+      sessionId: String,
+      events: Option[RequestEvents] = None): PartialFunction[Throwable, Unit] 
= {
     val session =
       SparkConnectService
         .getOrCreateIsolatedSession(userId, sessionId)
         .session
     val stackTraceEnabled = session.conf.get(PYSPARK_JVM_STACKTRACE_ENABLED)
 
-    {

Review Comment:
   Unfortunately does not work.
   I do see the option of doing
   ```
   PartialFunction[Throwable, (Throwable, Throwable)] {
   }.andThen
   ```
   but that's deprecated and recommend using original



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