Skip to content

Commit ebdbd8c

Browse files
committed
Address a comment.
1 parent 57ab41b commit ebdbd8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pyspark/sql/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1698,7 +1698,7 @@ def _correct_date_of_dataframe_from_arrow(pdf, schema):
16981698
""" Correct date type value to use datetime.date.
16991699
17001700
Pandas DataFrame created from PyArrow uses datetime64[ns] for date type values, but we should
1701-
use datetime.date to keep backward compatibility.
1701+
use datetime.date to match the behavior with when Arrow optimization is disabled.
17021702
17031703
:param pdf: pandas.DataFrame
17041704
:param schema: a Spark schema of the pandas.DataFrame

0 commit comments

Comments
 (0)