Uploaded image for project: 'Parquet'
  1. Parquet
  2. PARQUET-1201 Column indexes
  3. PARQUET-2340

appendRowGroup will loose pageIndex

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • parquet-mr
    • None

    Description

      Currently, 
      org.apache.parquet.hadoop.ParquetFileWriter#appendFile(org.apache.parquet.io.InputFile) uses appendRowGroup method to concate parquet row group. However, appendRowGroup method looses column index.

      // code placeholder
        public void appendRowGroup(SeekableInputStream from, BlockMetaData rowGroup,
                                   boolean dropColumns) throws IOException {
            ....
            // TODO: column/offset indexes are not copied
            // (it would require seeking to the end of the file for each row groups)
            currentColumnIndexes.add(null);
            currentOffsetIndexes.add(null);
        } 

       
      https://github.com/apache/parquet-mr/blob/f8465a274b42e0a96996c76f3be0b50cf85ecf15/parquet-hadoop/src/main/java/org/apache/parquet/hadoop/ParquetFileWriter.java#L1033C19-L1033C19

       

      Look forward to functionality that support append with page index.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            NathanKan GANHONGNAN
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: