Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19607#discussion_r149655172
  
    --- Diff: python/pyspark/sql/session.py ---
    @@ -557,7 +577,13 @@ def createDataFrame(self, data, schema=None, 
samplingRatio=None, verifySchema=Tr
             except Exception:
                 has_pandas = False
             if has_pandas and isinstance(data, pandas.DataFrame):
    -            data, schema = self._convert_from_pandas(data, schema)
    +            if 
self.conf.get("spark.sql.execution.pandas.respectSessionTimeZone").lower() \
    --- End diff --
    
    I feel this is a weird config... I think it's acceptable to introduce 
behavior change during bug fix, like the type inference bug we fixed when 
converting pandas dataframe to pyspark dataframe.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to