Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-1529

ConcatTool issue with empty files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.7.6
    • None
    • java
    • None

    Description

      I am using the ConcatTool to merge 2 avro files. The first one is empty, the second one has records. The merged file is seen as empty when I am opening it.

      My investigations showed the cause is that DataFileWriter.appendAllFrom(...) copies blocks from source to target even if they are empty, and DataFileReader.hasNext() returns false if the first block of an avro file is empty.

      Attachments

        Activity

          People

            Unassigned Unassigned
            manuel.godbert Manuel Godbert
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: