[ 
https://issues.apache.org/jira/browse/SPARK-25447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hyukjin Kwon resolved SPARK-25447.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 2.5.0

Issue resolved by pull request 22442
[https://github.com/apache/spark/pull/22442]

> Support JSON options by schema_of_json
> --------------------------------------
>
>                 Key: SPARK-25447
>                 URL: https://issues.apache.org/jira/browse/SPARK-25447
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.4.0
>            Reporter: Maxim Gekk
>            Assignee: Maxim Gekk
>            Priority: Minor
>             Fix For: 2.5.0
>
>
> The function schema_of_json doesn't accept any options currently but the 
> options can impact on schema inferring. Need to support the same options that 
> from_json() can use on schema inferring. Here is examples of options that 
> could impact on schema inferring:
> * primitivesAsString
> * prefersDecimal
> * allowComments
> * allowUnquotedFieldNames
> * allowSingleQuotes
> * allowNumericLeadingZeros
> * allowNonNumericNumbers
> * allowBackslashEscapingAnyCharacter
> * allowUnquotedControlChars
> Below is possible signature:
> {code:scala}
> def schema_of_json(e: Column, options: java.util.Map[String, String]): Column
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to