Github user marmbrus commented on the pull request:
https://github.com/apache/spark/pull/194#issuecomment-38503577
Hi @haosdent,
As patrick said, I think using a Schema RDD as the input would simplify
this quite a bit and avoid the need to define your own custom column mapping.
Schema RDDs already have named columns and datatypes. Let me know if you have
any questions about how you could use this functionality.
---
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.
---