MaxGekk commented on issue #28137: [SPARK-31361][SQL] Rebase datetime in 
parquet/avro according to file written Spark version
URL: https://github.com/apache/spark/pull/28137#issuecomment-610228516
 
 
   > It's not possible to do the opposite though, as forward compatibility is 
not guaranteed. 
   
   @cloud-fan I would propose to write value of 
`spark.sql.legacy.parquet.rebaseDateTimeInWrite.enabled` to Parquet/Avro meta. 
So, Spark 3.0 could check the flag in read and decide either do rebasing or 
skip it. If the flag does not present in meta info (saved by Spark 2.4), just 
do rebasing.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to