Csaba Ringhofer has submitted this change and it was merged. ( 
https://gerrit.cloudera.org/25494 )

Change subject: IMPALA-15836: MT scan queue: order Parquet/ORC footers by split 
length
......................................................................

IMPALA-15836: MT scan queue: order Parquet/ORC footers by split length

IMPALA-11539 made ScanRangeQueueMt a priority queue that hands out the
largest scan range first (Longest-Processing Time scheduling), ordered
by ScanRange::bytes_to_read(). For Parquet and ORC the queue does not
hold the splits but the footer ranges that HdfsScanner::
IssueFooterRanges() creates for them, one per split, with a length of
min(PARQUET_FOOTER_SIZE (100KB) / ORC_FOOTER_SIZE (16KB), file length).
The instance that dequeues a footer range reads the row groups / stripes
of the whole split (ScanRangeMetadata::original_split) without going
through the queue. So all footer ranges of files of at least 100KB
(16KB) tied and were handed out in heap order; only smaller files were
ordered (last). The e2e test of IMPALA-11539 only runs on text tables,
where the queue holds the splits themselves.

The queue now stores a weight for each range, computed once when it is
enqueued by ScanRangeQueueMt::RangeWeight(): the length of
'original_split' if it is set, which among the enqueued ranges is only
the case for footer ranges, otherwise bytes_to_read() as before. Text
and sequence ranges are ordered as before.

Testing:
- New scan-range-queue-mt-test (unified BE test): footer ranges are
  ordered by split length, mixed with a text range, and high priority
  ranges still come first. Passes in a debug build.

Change-Id: I810c038a970d9c259df58eafed5e59f2d0052aae
Assisted-by: Claude Opus 5.5 (Claude Code)
Reviewed-on: https://gerrit.cloudera.org/25494
Reviewed-by: Zoltan Borok-Nagy <[email protected]>
Tested-by: Csaba Ringhofer <[email protected]>
---
M be/src/exec/CMakeLists.txt
M be/src/exec/hdfs-scan-node-base.cc
A be/src/exec/scan-range-queue-mt-test.cc
M be/src/exec/scan-range-queue-mt.h
4 files changed, 147 insertions(+), 11 deletions(-)

Approvals:
  Zoltan Borok-Nagy: Looks good to me, approved
  Csaba Ringhofer: Verified

--
To view, visit https://gerrit.cloudera.org/25494
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I810c038a970d9c259df58eafed5e59f2d0052aae
Gerrit-Change-Number: 25494
Gerrit-PatchSet: 3
Gerrit-Owner: Csaba Ringhofer <[email protected]>
Gerrit-Reviewer: Csaba Ringhofer <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>

Reply via email to