Github user marmbrus commented on the pull request:

    https://github.com/apache/spark/pull/4434#issuecomment-103973399
  
    We should move this discussion off of github and onto the mailing list, but 
creating a dataframe is not expensive.  The following seems easier to me than 
the example presented here.
    
    ```python
    from pyspark.sql import Row
    df = sc.parallelize([Row(name="Michael", age=30)]).toDF()
    df.save("/home/michael/people.avro", "com.databricks.spark.avro")
    df.save("/home/michael/people.json", "json")
    
    sqlContext.load("/home/michael/people", "com.databricks.spark.avro")
    Out[6]: DataFrame[age: bigint, name: string]
    ```


---
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]

Reply via email to