Github user yhuai commented on a diff in the pull request:

    https://github.com/apache/spark/pull/9724#discussion_r44884948
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/DataFrameReader.scala ---
    @@ -255,13 +264,10 @@ class DataFrameReader private[sql](sqlContext: 
SQLContext) extends Logging {
        * @since 1.4.0
        */
       def json(jsonRDD: RDD[String]): DataFrame = {
    -    val samplingRatio = extraOptions.getOrElse("samplingRatio", 
"1.0").toDouble
    -    val primitivesAsString = extraOptions.getOrElse("primitivesAsString", 
"false").toBoolean
         sqlContext.baseRelationToDataFrame(
           new JSONRelation(
             Some(jsonRDD),
    -        samplingRatio,
    -        primitivesAsString,
    +        JSONOptions.createFromConfigMap(extraOptions.toMap),
    --- End diff --
    
    Let's also pass `extraOptions` to this `JSONRelation`.


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