Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-26913

Iceberg: HiveVectorizedReader::parquetRecordReader should reuse footer information

    XMLWordPrintableJSON

Details

    Description

      HiveVectorizedReader::parquetRecordReader should reuse details of parquet footer, instead of reading it again.

       

      It reads parquet footer here:

      https://github.com/apache/hive/blob/master/iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/vector/HiveVectorizedReader.java#L230-L232

      Again it reads the footer here for constructing vectorized recordreader

      https://github.com/apache/hive/blob/master/iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/vector/HiveVectorizedReader.java#L249

       

      https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/io/parquet/VectorizedParquetInputFormat.java#L50

       

      Check the codepath of VectorizedParquetRecordReader::setupMetadataAndParquetSplit

      https://github.com/apache/hive/blob/6b0139188aba6a95808c8d1bec63a651ec9e4bdc/ql/src/java/org/apache/hadoop/hive/ql/io/parquet/vector/VectorizedParquetRecordReader.java#L180

       

      It should be possible to share "ParquetMetadata" in VectorizedParuqetRecordReader.

       

      Attachments

        1. Screenshot 2023-01-09 at 4.01.14 PM.png
          444 kB
          Rajesh Balamohan

        Issue Links

          Activity

            People

              ayushtkn Ayush Saxena
              rajesh.balamohan Rajesh Balamohan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h