Skip to content

Commit

Permalink
reset catalog in pyspark tests
Browse files Browse the repository at this point in the history
  • Loading branch information
windpiger committed Mar 14, 2017
1 parent cd4a091 commit 739f207
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/pyspark/sql/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ def setUpClass(cls):
cls.tempdir = tempfile.NamedTemporaryFile(delete=False)
os.unlink(cls.tempdir.name)
cls.spark = SparkSession(cls.sc)
cls.spark.catalog._reset()

cls.testData = [Row(key=i, value=str(i)) for i in range(100)]
cls.df = cls.spark.createDataFrame(cls.testData)

Expand Down

0 comments on commit 739f207

Please sign in to comment.