[ 
https://issues.apache.org/jira/browse/SPARK-34229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17271665#comment-17271665
 ] 

Apache Spark commented on SPARK-34229:
--------------------------------------

User 'dongjoon-hyun' has created a pull request for this issue:
https://github.com/apache/spark/pull/31329

> Avro should read decimal values with the file schema
> ----------------------------------------------------
>
>                 Key: SPARK-34229
>                 URL: https://issues.apache.org/jira/browse/SPARK-34229
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.0.1, 3.2.0, 3.1.1
>            Reporter: Dongjoon Hyun
>            Assignee: Dongjoon Hyun
>            Priority: Blocker
>              Labels: correctness
>
> {code:java}
> scala> sql("SELECT 3.14 a").write.format("avro").save("/tmp/avro3")scala> 
> spark.read.schema("a DECIMAL(4, 3)").format("avro").load("/tmp/avro3").show
> +-----+
> |    a|
> +-----+
> |0.314|
> +-----+ {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to