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

    https://github.com/apache/spark/pull/22442#discussion_r219297029
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/functions.scala ---
    @@ -3611,6 +3611,20 @@ object functions {
        */
       def schema_of_json(e: Column): Column = withExpr(new 
SchemaOfJson(e.expr))
     
    +  /**
    +   * Parses a column containing a JSON string and infers its schema using 
options.
    +   *
    +   * @param e a string column containing JSON data.
    +   * @param options JSON datasource options that control JSON parsing and 
type inference.
    --- End diff --
    
    do we fail if users currently specify an option in dataframereader that 
doesn't apply? if we don't i wouldn't fail here.



---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to