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

Upgrade Apache ORC to 1.4.3

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.3.1, 2.4.0
    • Component/s: Build, SQL
    • Labels:
      None

      Description

      This issue updates Apache ORC dependencies to 1.4.3 released on February 9th.
      Apache ORC 1.4.2 release removes unnecessary dependencies and 1.4.3 has 5 more patches including bug fixes (https://s.apache.org/Fll8).
      Especially, the following ORC-285 is fixed at 1.4.3.

      scala> val df = Seq(Array.empty[Float]).toDF()
      
      scala> df.write.format("orc").save("/tmp/floatarray")
      
      scala> spark.read.orc("/tmp/floatarray")
      res1: org.apache.spark.sql.DataFrame = [value: array<float>]
      
      scala> spark.read.orc("/tmp/floatarray").show()
      18/02/12 22:09:10 ERROR Executor: Exception in task 0.0 in stage 1.0 (TID 1)
      java.io.IOException: Error reading file: file:/tmp/floatarray/part-00000-9c0b461b-4df1-4c23-aac1-3e4f349ac7d6-c000.snappy.orc
      	at org.apache.orc.impl.RecordReaderImpl.nextBatch(RecordReaderImpl.java:1191)
      	at org.apache.orc.mapreduce.OrcMapreduceRecordReader.ensureBatch(OrcMapreduceRecordReader.java:78)
      ...
      Caused by: java.io.EOFException: Read past EOF for compressed stream Stream for column 2 kind DATA position: 0 length: 0 range: 0 offset: 0 limit: 0
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dongjoon Dongjoon Hyun
                Reporter:
                dongjoon Dongjoon Hyun
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: