Skip to content

Commit

Permalink
py test
Browse files Browse the repository at this point in the history
  • Loading branch information
yaooqinn committed May 2, 2020
1 parent 128ca14 commit ac511ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyspark/sql/tests/test_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def test_datetime_functions(self):
from datetime import date
df = self.spark.range(1).selectExpr("'2017-01-22' as dateCol")
parse_result = df.select(functions.to_date(functions.col("dateCol"))).first()
self.assertEquals(date(2017, 1, 22), parse_result['to_date(`dateCol`)'])
self.assertEquals(date(2017, 1, 22), parse_result['to_date(dateCol)'])

def test_unbounded_frames(self):
from pyspark.sql import functions as F
Expand Down

0 comments on commit ac511ad

Please sign in to comment.