You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/05/17 21:37:02 UTC

[GitHub] [spark] BryanCutler commented on issue #24614: [SPARK-27712][PySpark][SQL] Returns correct schema even under different column order when creating dataframe

BryanCutler commented on issue #24614: [SPARK-27712][PySpark][SQL] Returns correct schema even under different column order when creating dataframe
URL: https://github.com/apache/spark/pull/24614#issuecomment-493606770
 
 
   Ah yes, there are all kinds of inconsistencies in the PySpark Row class.  I think this is a duplicate of SPARK-22232 and we discussed in the PR here https://github.com/apache/spark/pull/20280. The fix there was to also pickle the `__from_dict__` flag, but the problem becomes that the input schema in `createDataFrame` must match field names and no longer goes off of position.  At the time, I thought this was the most consistent fix, but I'll have to look at it again.

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


With regards,
Apache Git Services

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