SPARK-4228 SchemaRDD to JSON

Here's a simple fix for SchemaRDD to JSON.
Done and done @davies, @yhaui

On Sat, Nov 15, 2014 at 5:17 PM, Yin Huai <notifications@github.com> wrote:

> In sql/core/src/main/scala/org/apache/spark/sql/SchemaRDD.scala:
>
> > @@ -131,6 +134,68 @@ class SchemaRDD(
> >     */
> >    lazy val schema: StructType = queryExecution.analyzed.schema
> >
> > +  /** Transforms a single Row to JSON using Jackson
> > +    *
> > +    * @param jf a JsonFactory object to construct a JsonGenerator
> > +    * @param rowSchema the schema object used for conversion
> > +    * @param row The row to convert
> > +    */
> > +  private def rowToJSON(rowSchema: StructType, jf: JsonFactory)(row: Row): String = {
>
> How about to rename jf to jsonFactory?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/apache/spark/pull/3213/files#r20406459>.
>