Github user davies commented on the pull request:
https://github.com/apache/spark/pull/8375#issuecomment-202458325
@saurfang This could be done easily with DataFrame APIs:
```
val df = rdd.map(t => Row(gen_key(t), t)).toDF("key", "text")
df.write.partitionBy("key").text(path)
```
DataFrame APIs also support many other data type and file formats.
Would you mind close this PR and put this workaround in the JIRA?
---
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.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]