Skip to content
Prev Previous commit
Next Next commit
tearDownClass
  • Loading branch information
xinrong-meng committed Apr 20, 2023
commit 86938d56dc2493c366b1088b6a623e324c69ebfe
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ def setUpClass(cls):
super(ArrowPythonUDFParityTests, cls).setUpClass()
cls.spark.conf.set("spark.sql.execution.pythonUDF.arrow.enabled", "true")

@classmethod
def tearDownClass(cls):
cls.spark.conf.unset("spark.sql.execution.pythonUDF.arrow.enabled")
super(ArrowPythonUDFParityTests, cls).tearDownClass()


if __name__ == "__main__":
import unittest
Expand Down
5 changes: 5 additions & 0 deletions python/pyspark/sql/tests/test_arrow_python_udf.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ def setUpClass(cls):
super(PythonUDFArrowTests, cls).setUpClass()
cls.spark.conf.set("spark.sql.execution.pythonUDF.arrow.enabled", "true")

@classmethod
def tearDownClass(cls):
cls.spark.conf.unset("spark.sql.execution.pythonUDF.arrow.enabled")
super().tearDownClass()


if __name__ == "__main__":
from pyspark.sql.tests.test_arrow_python_udf import * # noqa: F401
Expand Down