Skip to content

Commit

Permalink
[SPARK-43964][PYTHON][TESTS][FOLLOWUP] Skip a test using pandas when …
Browse files Browse the repository at this point in the history
…pandas is not available

### What changes were proposed in this pull request?

This is a follow-up of apache#41867.

Skips a test using pandas when pandas is not available.

### Why are the changes needed?

There is a test using pandas, but there is a case where pandas is not available.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Manually.

Closes apache#42131 from ueshin/issues/SPARK-43964/skip.

Authored-by: Takuya UESHIN <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
  • Loading branch information
ueshin authored and HyukjinKwon committed Jul 25, 2023
1 parent 7f730f6 commit b930f7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/pyspark/sql/tests/test_udtf.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ def eval(self, x: int):

self.assertEqual(TestUDTF(lit(1)).collect(), [Row(x={1: "1"})])

@unittest.skipIf(not have_pandas, pandas_requirement_message)
def test_udtf_with_pandas_input_type(self):
import pandas as pd

Expand Down

0 comments on commit b930f7a

Please sign in to comment.