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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to