Skip to content

HIVE-30296: Parquet: the vectorized reader re-parses Hadoop configuration files and rebuilds the partition path map for every split - #7010

Open
deniskuzZ wants to merge 1 commit into
apache:masterfrom
deniskuzZ:parquet-split-setup-once

Conversation

@deniskuzZ

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

  • VectorizedParquetRecordReader.readSplitFooter builds the footer's read options from the job configuration (HadoopReadOptions.builder(conf, path)) instead of ParquetReadOptions.builder(), which creates a new Hadoop Configuration that parses the XML resources again.
  • ProjectionPusher looks the split's directory up in the plan's own pathToPartitionInfo (HiveFileFormatUtils.getFromPathRecursively, with and without scheme and authority) instead of copying the map with every path stripped, per split.

Why are the changes needed?

With hive.llap.io.parquet.native.enabled off, both ran per split: TPC-DS 10 TB external Parquet, q16 profiled: 29.6 % and 21.0 % of LLAP CPU samples. 12 LLAP daemons, native reader off, mirrored: 99 queries 3,482.8 -> 3,165.5 s (-9.1 %), LLAP CPU -12.1 %, results identical; q16 36.9 -> 25.9 s.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

  • TestProjectionPusher (5; without the fallback to the stripped paths testOtherScheme fails) and the Parquet unit tests (51 with TestMapredParquetInputFormat, TestParquetRowGroupFilter, TestVectorized*ColumnReader).
  • TestMiniLlapLocalCliDriver: parquet_partitioned, vectorized_parquet_types, parquet_vectorization_pushdown, parquet_ppd_partition, vectorization_parquet_projection; TestMiniLlapCliDriver: parquet_types_vectorization.

🤖 Generated with Claude Code

…tion files and rebuilds the partition path map for every split

- With hive.llap.io.parquet.native.enabled off, VectorizedParquetRecordReader repeated two pieces of setup per split:
  readSplitFooter built ParquetReadOptions with a new Hadoop Configuration, whose first lookup parsed the Hadoop XML
  resources again; ProjectionPusher.updateMrWork copied pathToPartitionInfo with every path stripped of scheme and
  authority. TPC-DS 10 TB external Parquet, q16 profiled: 29.6 % and 21.0 % of LLAP CPU samples
- The footer's options come from the job configuration (HadoopReadOptions.builder(conf, path)); the split's directory
  is looked up in the plan's own paths (HiveFileFormatUtils.getFromPathRecursively), stripping only when none matches
- 12 LLAP daemons, native reader off, mirrored: 99 queries 3,482.8 -> 3,165.5 s (-9.1 %), LLAP CPU -12.1 %, results
  identical; q16 36.9 -> 25.9 s
- TestProjectionPusher, the Parquet unit tests, Parquet qtests
@sonarqubecloud

sonarqubecloud Bot commented Dec 5, 2026

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants