Skip to content

Commit

Permalink
[MINOR][TESTS] Enable nullability check in `test_create_dataframe_fro…
Browse files Browse the repository at this point in the history
…m_arrays`

### What changes were proposed in this pull request?
Enable nullability check in `test_create_dataframe_from_arrays`

### Why are the changes needed?
for test coverage

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

### How was this patch tested?
ci

### Was this patch authored or co-authored using generative AI tooling?
no

Closes apache#45473 from zhengruifeng/connect_test_enable_array_schema.

Authored-by: Ruifeng Zheng <ruifengz@apache.org>
Signed-off-by: Ruifeng Zheng <ruifengz@apache.org>
  • Loading branch information
zhengruifeng committed Mar 13, 2024
1 parent 37d0c55 commit 5d32e62
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/pyspark/sql/tests/connect/test_connect_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -954,8 +954,7 @@ def test_create_dataframe_from_arrays(self):
cdf = self.connect.createDataFrame(data)
sdf = self.spark.createDataFrame(data)

# TODO: the nullability is different, need to fix
# self.assertEqual(cdf.schema, sdf.schema)
self.assertEqual(cdf.schema, sdf.schema)
self.assertEqual(cdf.collect(), sdf.collect())

def test_timestampe_create_from_rows(self):
Expand Down

0 comments on commit 5d32e62

Please sign in to comment.