Skip to content

Commit

Permalink
Update test_types.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AngersZhuuuu committed May 27, 2024
1 parent cba05ff commit c860edd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/pyspark/sql/tests/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,10 @@ def __init__(self):
df = self.spark.createDataFrame(data)
self.assertEqual(list(df.schema)[0].dataType.simpleString(), "timestamp_ntz")
self.assertEqual(df.first()[0], datetime.datetime(1970, 1, 1, 0, 0))
self.assertEqual(list(df.schema)[1].dataType.simpleString(), "timestamp_ntz")
self.assertEqual(
list(df.schema)[1].dataType.simpleString(),
"struct<a:struct<a:timestamp_ntz>>"
)
self.assertEqual(df.first()[1], Row(a=Row(a=datetime.datetime(1970, 1, 1, 0, 0))))

df = self.spark.createDataFrame(
Expand Down

0 comments on commit c860edd

Please sign in to comment.