yujhe commented on issue #26807: [SPARK-30181][SQL] Only add string or integral type column to metastore partition filter URL: https://github.com/apache/spark/pull/26807#issuecomment-566041339 @cloud-fan here's the test I run in spark-2.4.4., but I have not tested in `master` branch. ```scala spark.sql("CREATE TABLE timestamp_part (value INT) PARTITIONED BY (dt TIMESTAMP)") val df = Seq( (1, java.sql.Timestamp.valueOf("2019-12-01 00:00:00"), 1), (2, java.sql.Timestamp.valueOf("2019-12-01 01:00:00"), 1) ).toDF("id", "dt", "value") df.write.partitionBy("dt").mode("overwrite").saveAsTable("timestamp_part") spark.sql("select * from timestamp_part where dt >= '2019-12-01 00:00:00'").explain(true) ```
---------------------------------------------------------------- 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]
