[ https://issues.apache.org/jira/browse/SPARK-25447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xiao Li updated SPARK-25447: ---------------------------- Fix Version/s: (was: 2.5.0) 3.0.0 > 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: 3.0.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