HyukjinKwon commented on code in PR #40998:
URL: https://github.com/apache/spark/pull/40998#discussion_r1180942169


##########
python/pyspark/sql/pandas/conversion.py:
##########
@@ -357,8 +357,11 @@ def _collect_as_arrow(self, split_batches: bool = False) 
-> List["pa.RecordBatch
             else:
                 results = list(batch_stream)
         finally:
-            # Join serving thread and raise any exceptions from 
collectAsArrowToPython
-            jsocket_auth_server.getResult()
+            from pyspark.errors.exceptions.captured import 
unwrap_spark_exception

Review Comment:
   I think we can just import on the top.



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