BryanCutler commented on a change in pull request #24677: [SPARK-27805][PYTHON]
Propagate SparkExceptions during toPandas with arrow enabled
URL: https://github.com/apache/spark/pull/24677#discussion_r288345987
##########
File path: python/pyspark/sql/tests/test_arrow.py
##########
@@ -191,6 +191,18 @@ def test_no_partition_frame(self):
self.assertEqual(pdf.columns[0], "field1")
self.assertTrue(pdf.empty)
+ def test_propagates_spark_exception(self):
+ df = self.spark.range(3).toDF("i")
+ from pyspark.sql.functions import udf
Review comment:
you can move this import to 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.
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]