Github user marmbrus commented on the pull request:

    https://github.com/apache/spark/pull/1598#issuecomment-50841921
  
    If we are going to create our own function that builds rows instead of 
using named tuples (which is increasingly growing on me...) Perhaps we could 
use `**kwargs`?
    
    I'm thinking something like `inferSchema(rdd.map(lambda x: row(name = x[1], 
age = x[2]))`
    
    Just a thought... that seems lightweight but doesn't suffer the semantic 
ambiguities inherit with dictionaries.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to