Github user BryanCutler commented on the issue:
https://github.com/apache/spark/pull/20280
Thanks @HyukjinKwon and @MrBago for reviewing. After thinking about this
some more, I don't think this is the right solution. Like @HyukjinKwon pointed
out, the supplied schema names should always override any specified from `Row`
even if it was made from kwargs. So that means `toDF` must go by position, and
for `Row` with kwargs that is with field names sorted. That seems a little
strange but I believe it is mostly due to a Python limitation of kwargs not
being in a specific order and I don't know if there is much we can do about it.
Something still seems wrong though because the example @MrBago has in the
JIRA is inconsistent. I'll go over it again tomorrow, when I'm more awake..
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]