Github user JoshRosen commented on the issue: https://github.com/apache/spark/pull/13652 Question to check my conceptual understanding: if I don't use explicit `java.sql.Date` functions or conversions and don't call any timezone functions, etc., then should any time/date-related pure SQL query return the same results irrespective of my machine's local timezone? I've found a confusing counterexample: ```scala sc.parallelize(Seq(1466036527, 1466036527)).toDF("ts").selectExpr("cast(ts as timestamp)").filter("ts < '2016-06-15 17:22:07.0'").collect() ``` If I run this with `./bin/spark-shell --driver-java-options '-Duser.timezone=America/Los_Angeles'` and `./bin/spark-shell --driver-java-options '-Duser.timezone=Europe/Moscow'` then I get different results, which I find somewhat perplexing.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org