Wenchen Fan

Results 245 comments of Wenchen Fan

can we add a test which sets `spark.sql.session.timeZone` to a different value than the CI machine local timezone?

> unless we are able to read session config inside the conversion function Where do we do the conversion? At lease for the UDF case the conversion should all happen...

@gaogaotiantian The key of Spark `TimestampType` is that it's an absolute timestamp. The session timezone only matters when we render the timestamp without timezone (e.g. `df.show`, or cast to string,...

ah this is tough. I agree with "always map TimestampType with aware datetime", but it can be a breaking change to python UDFs, as it's not only a data change,...

Let's clearly define this "strict mode". For the input side, Spark can be more lenient and allow mixed timezone aware and non-aware datetime objects, by using session timezone. For the...

ok so Spark should fail if naive and aware datetimes are mixed? It's another breaking change though...

Let’s open a PR so we can discuss the details more closely.