[GitHub] [spark] dlindelof commented on issue #26747: [SPARK-29188][PYTHON] toPandas (without Arrow) gets wrong dtypes when applied on empty DF

2019-12-12 Thread GitBox
dlindelof commented on issue #26747: [SPARK-29188][PYTHON] toPandas (without 
Arrow) gets wrong dtypes when applied on empty DF
URL: https://github.com/apache/spark/pull/26747#issuecomment-564976341
 
 
   @HyukjinKwon my JIRA id is `dlindelof`. Thanks for approving this PR, happy 
to help.


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:
us...@infra.apache.org


With regards,
Apache Git Services

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



[GitHub] [spark] dlindelof commented on issue #26747: [SPARK-29188][PYTHON] toPandas (without Arrow) gets wrong dtypes when applied on empty DF

2019-12-09 Thread GitBox
dlindelof commented on issue #26747: [SPARK-29188][PYTHON] toPandas (without 
Arrow) gets wrong dtypes when applied on empty DF
URL: https://github.com/apache/spark/pull/26747#issuecomment-563122883
 
 
   Hi,
   
   Just wanted to check what you think of the patch now, is there anything else 
you think that should be changed? Just let me know and I'll be happy to 
implement it.


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:
us...@infra.apache.org


With regards,
Apache Git Services

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



[GitHub] [spark] dlindelof commented on issue #26747: [SPARK-29188][PYTHON] toPandas (without Arrow) gets wrong dtypes when applied on empty DF

2019-12-04 Thread GitBox
dlindelof commented on issue #26747: [SPARK-29188][PYTHON] toPandas (without 
Arrow) gets wrong dtypes when applied on empty DF
URL: https://github.com/apache/spark/pull/26747#issuecomment-561531770
 
 
   I'm seeing a failed build, but it doesn't look like it has anything to do 
with this patch, does it?


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:
us...@infra.apache.org


With regards,
Apache Git Services

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



[GitHub] [spark] dlindelof commented on issue #26747: [SPARK-29188][PYTHON] toPandas (without Arrow) gets wrong dtypes when applied on empty DF

2019-12-03 Thread GitBox
dlindelof commented on issue #26747: [SPARK-29188][PYTHON] toPandas (without 
Arrow) gets wrong dtypes when applied on empty DF
URL: https://github.com/apache/spark/pull/26747#issuecomment-561519797
 
 
   @srowen This illustrates the current behaviour, where an empty Spark 
Dataframe with a column of type `LongType` becomes a Pandas Dataframe with a 
column of type `object`, i.e. string:
   
   ```
   In [62]: foo = spark.sql("SELECT CAST(1 AS LONG) AS bar WHERE 1 = 0")
   
   In [63]: foo
   Out[63]: DataFrame[bar: bigint]
   
   In [64]: foo.toPandas().dtypes
   Out[64]:
   barobject
   dtype: object
   ```
   
   When the dataframe is not empty, this is what you see:
   
   ```
   In [65]: foo = spark.sql("SELECT CAST(1 AS LONG) AS bar WHERE 1 = 1")
   
   In [66]: foo.toPandas().dtypes
   Out[66]:
   barint64
   dtype: object
   ```


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:
us...@infra.apache.org


With regards,
Apache Git Services

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



[GitHub] [spark] dlindelof commented on issue #26747: [SPARK-29188][PYTHON] toPandas (without Arrow) gets wrong dtypes when applied on empty DF

2019-12-03 Thread GitBox
dlindelof commented on issue #26747: [SPARK-29188][PYTHON] toPandas (without 
Arrow) gets wrong dtypes when applied on empty DF
URL: https://github.com/apache/spark/pull/26747#issuecomment-561518046
 
 
   @HyukjinKwon I've reverted back to an if-else chain instead of a dict. Was 
there anything else you think I should change?


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:
us...@infra.apache.org


With regards,
Apache Git Services

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