Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-49082

Support type promotion/widening for Avro readers

    XMLWordPrintableJSON

Details

    Description

      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)

      Attachments

        Issue Links

          Activity

            People

              jackierwzhang Jackie Zhang
              jackierwzhang Jackie Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: