You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (JIRA)" <ji...@apache.org> on 2019/05/28 03:24:00 UTC

[jira] [Resolved] (SPARK-27858) Fix for avro deserialization on union types with multiple non-null types

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

Dongjoon Hyun resolved SPARK-27858.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.0
                   2.4.4

This is resolved via https://github.com/apache/spark/pull/24722

> Fix for avro deserialization on union types with multiple non-null types
> ------------------------------------------------------------------------
>
>                 Key: SPARK-27858
>                 URL: https://issues.apache.org/jira/browse/SPARK-27858
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.0.0, 2.4.3
>            Reporter: Dongjoon Hyun
>            Priority: Major
>             Fix For: 2.4.4, 3.0.0
>
>
> This issue aims to fix a union avro type with more than one non-null value (for instance `["string", "null", "int"]`) the deserialization to a DataFrame would throw a `java.lang.ArrayIndexOutOfBoundsException`. The issue was that the `fieldWriter` relied on the index from the avro schema before null were filtered out.



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

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