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


   ### What changes were proposed in this pull request?
   1. Modified `ParquetFilters.valueCanMakeFilterOn()` to accept filters with 
`java.time.Instant` attributes.
   2. Added `ParquetFilters.timestampToMicros()` to support both types 
`java.sql.Timestamp` and `java.time.Instant` in conversions to microseconds.
   3. Re-used `timestampToMicros` in constructing of Parquet filters. 
   
   ### Why are the changes needed?
   To support pushed down filters with `java.time.Instant` attributes. Before 
the changes, date filters are not pushed down to Parquet datasource when 
`spark.sql.datetime.java8API.enabled` is `true`.
   
   ### Does this PR introduce any user-facing change?
   No
   
   ### How was this patch tested?
   Modified tests to `ParquetFilterSuite` to check the case when Java 8 API is 
enabled.


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