1. [SPARK-25763][SQL][PYSPARK][TEST] Use more `@contextmanager` to ensure (details)
Commit e80f18dbd8bc4c2aca9ba6dd487b50e95c55d2e6 by hyukjinkwon
[SPARK-25763][SQL][PYSPARK][TEST] Use more `@contextmanager` to ensure
clean-up each test.
## What changes were proposed in this pull request?
Currently each test in `SQLTest` in PySpark is not cleaned properly. We
should introduce and use more `contextmanager` to be convenient to clean
up the context properly.
## How was this patch tested?
Modified tests.
Closes #22762 from ueshin/issues/SPARK-25763/cleanup_sqltests.
Authored-by: Takuya UESHIN <> Signed-off-by:
hyukjinkwon <>
The file was modifiedpython/pyspark/sql/ (diff)