You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Jackie Zhang (Jira)" <ji...@apache.org> on 2024/08/01 18:51:00 UTC
[jira] [Created] (SPARK-49082) Support type promotion/widening for Avro readers
Jackie Zhang created SPARK-49082:
------------------------------------
Summary: 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
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