Uploaded image for project: 'ORC'
  1. ORC
  2. ORC-1357

Handle missing compression block size

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.8.2
    • 1.8.3
    • compression, Java
    • None

    Description

      Reader.cc (lines 59-65) handles when the writer doesn't set compressionBlockSize in the postscript by checking if it's set and using 256 * 1024 if it's not.

      The ReaderImpl.java does no such checks (lines 744 and 826), and uses the protobuffer "empty" value of 0 when the value is not specified.

      This means that valid files (compressionBlockSize is optional after all) can't be read by the Java implementation, but can be by the C++ implementation.

      Attachments

        Issue Links

          Activity

            People

              hcampbell Huw
              hcampbell Huw
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: