You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/06/01 18:23:11 UTC
[GitHub] [spark] MaxGekk commented on a change in pull request #28699: [SPARK-31885][SQL][3.0] Fix filter push down for old millis timestamps to Parquet
MaxGekk commented on a change in pull request #28699:
URL: https://github.com/apache/spark/pull/28699#discussion_r433408764
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetFilters.scala
##########
@@ -148,6 +148,13 @@ class ParquetFilters(
Binary.fromConstantByteArray(fixedLengthBytes, 0, numBytes)
}
+ private def timestampToMillis(v: Any): JLong = {
+ val timestamp = v.asInstanceOf[Timestamp]
+ val micros = DateTimeUtils.fromJavaTimestamp(timestamp)
+ val millis = DateTimeUtils.toMillis(micros)
Review comment:
This line causes the problem.
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org