You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2021/01/26 05:33:00 UTC
[jira] [Resolved] (SPARK-34229) Avro should read decimal values
with the file schema
[ https://issues.apache.org/jira/browse/SPARK-34229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon resolved SPARK-34229.
----------------------------------
Fix Version/s: 3.1.2
2.4.8
3.0.2
Resolution: Fixed
Issue resolved by pull request 31329
[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: 2.4.7, 3.0.1, 3.2.0, 3.1.1
> Reporter: Dongjoon Hyun
> Assignee: Dongjoon Hyun
> Priority: Blocker
> Labels: correctness
> Fix For: 3.0.2, 2.4.8, 3.1.2
>
>
> {code:java}
> scala> sql("SELECT 3.14 a").write.format("avro").save("/tmp/avro")
> scala> spark.read.schema("a DECIMAL(4, 3)").format("avro").load("/tmp/avro").show
> +-----+
> | a|
> +-----+
> |0.314|
> +-----+ {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org