MaxGekk opened a new pull request #30061:
URL: https://github.com/apache/spark/pull/30061


   ### What changes were proposed in this pull request?
   Added a couple tests to `AvroSuite` and to `ParquetIOSuite` to check that 
the metadata key 'org.apache.spark.legacyDateTime' is written correctly 
depending on the SQL configs:
   - spark.sql.legacy.avro.datetimeRebaseModeInWrite
   - spark.sql.legacy.parquet.datetimeRebaseModeInWrite
   
   This is a follow up https://github.com/apache/spark/pull/28137.
   
   ### Why are the changes needed?
   1. To improve test coverage
   2. To make sure that the metadata key is actually saved to Avro/Parquet files
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   By running the added tests:
   ```
   $ build/sbt "testOnly 
org.apache.spark.sql.execution.datasources.parquet.ParquetIOSuite"
   $ build/sbt "avro/test:testOnly org.apache.spark.sql.avro.AvroV1Suite"
   $ build/sbt "avro/test:testOnly org.apache.spark.sql.avro.AvroV2Suite"
   ```


----------------------------------------------------------------
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]



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

Reply via email to