HyukjinKwon opened a new pull request, #39544:
URL: https://github.com/apache/spark/pull/39544

   ### What changes were proposed in this pull request?
   
   This PR is a followup of https://github.com/apache/spark/pull/39469 that 
uses the same logic with PySpark: 
https://github.com/apache/spark/blob/baa6fa9b148467bfc83e6c2d22ea9fd9fa5b4564/python/pyspark/sql/pandas/conversion.py#L546-L631
   
   and reeanbles skipped test 
`test_create_dataframe_from_pandas_with_timestamp`.
   
   This PR fixes a bug together by doing this. Nave datetime was inferred as 
`TimestampNTZType` before but now it is inferred as `TimestampType` that is 
matched with the regular PySpark.
   
   ### Why are the changes needed?
   
   To deduplicate the changes in the future, and maintainability.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No to end users.
   It matches the behaviour to the existing PySpark's `createDataFrame(pdf)`.
   
   ### How was this patch tested?
   
   Reenabled a skipped test, and existing test added in the previous PR should 
cover this.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to