Brandon Bradley created SPARK-12749:
---------------------------------------

             Summary: Spark SQL JSON schema infernce should allow parsing 
numbers as BigDecimal
                 Key: SPARK-12749
                 URL: https://issues.apache.org/jira/browse/SPARK-12749
             Project: Spark
          Issue Type: Improvement
          Components: SQL
            Reporter: Brandon Bradley
            Priority: Minor


Hello,

Spark SQL JSON parsing has no options for producing BigDecimal from 
floating-point values. I think an option should be added to 
`org.apache.spark.sql.execution.datasources.json.JSONOptions` to allow for 
this. I can provide a patch if an option name can be agreed upon.

I'm thinking something like `floatAsBigDecimal`.

Cheers!
Brandon



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to