Github user cloud-fan commented on a diff in the pull request:
https://github.com/apache/spark/pull/18933#discussion_r145717813
--- Diff: python/pyspark/sql/dataframe.py ---
@@ -1760,6 +1760,17 @@ def toPandas(self):
for f, t in dtype.items():
pdf[f] = pdf[f].astype(t, copy=False)
+
+ if
self.sql_ctx.getConf("spark.sql.execution.pandas.timeZoneAware",
"false").lower() \
--- End diff --
I'd like to treat it as a bug and always respect the session local timezone.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]