You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2024/08/07 09:19:00 UTC

[jira] [Assigned] (SPARK-49082) Support type promotion/widening for Avro readers

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

ASF GitHub Bot reassigned SPARK-49082:
--------------------------------------

    Assignee:     (was: Apache Spark)

> Support type promotion/widening for Avro readers
> ------------------------------------------------
>
>                 Key: SPARK-49082
>                 URL: https://issues.apache.org/jira/browse/SPARK-49082
>             Project: Spark
>          Issue Type: New Feature
>          Components: Input/Output
>    Affects Versions: 4.0.0
>            Reporter: Jackie Zhang
>            Priority: Major
>              Labels: pull-request-available
>
> Similar to the ask in https://issues.apache.org/jira/browse/SPARK-40876, we should be able to enable type promotion/widening for Avro readers - i.e. we should be able to read back Avro data encoded in a narrower type using a wider Spark schema type.
> We should support the following:
>  * Int -> Long
>  * Float -> Double
>  * Int -> Double
>  * Date -> TimestampNTZ (Timestamp without timezone only as a date has no timezone information)
>  * Decimal with higher precision (already supported in non-vectorized reader)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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