Zoltan Borok-Nagy has uploaded this change for review. ( 
https://gerrit.cloudera.org/25580


Change subject: PROTOTYPE IMPALA-15856: Do not cap CPC scan and union fragments 
by the left child
......................................................................

PROTOTYPE IMPALA-15856: Do not cap CPC scan and union fragments by the left 
child

IMPALA-14006 caps the instance count of a fragment at
maxThreadPerNode times the number of nodes of its left child fragment,
because Scheduler::CreateInputCollocatedInstances() places the
instances of an interior fragment on the hosts of its left child. The
cap also applied to fragments with a scan or union node, which the
scheduler places on the hosts of their scans and input fragments
instead (CreateCollocatedAndScanInstances()).

So a union that scans a large table and has an unpartitioned input,
e.g. "select ss_item_sk from store_sales union all select count(*)
from date_dim", was capped at maxThreadPerNode instances in total:
16 instead of 48 on 3 nodes with 16 cores.

The cap now only applies to fragments without a scan or union node,
also when lowering parallelism to fit the thread reservation limits.

This is part of a series of COMPUTE_PROCESSING_COST (CPC) costing
prototypes. The last one (IMPALA-15841) has the measured effect of the
series.

Testing:
- New ProcessingCostDefaultGroupCoresTest case, which fails without
  the fix.
- Ran the CPC planner tests; no plan changes.

Change-Id: Ib56b38909648910ad2e36eca3dbb1db1a5f8b94e
Assisted-by: Claude Opus 5.5 (Claude Code)
---
M fe/src/main/java/org/apache/impala/planner/PlanFragment.java
M 
fe/src/test/java/org/apache/impala/planner/ProcessingCostDefaultGroupCoresTest.java
2 files changed, 51 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/80/25580/1
--
To view, visit https://gerrit.cloudera.org/25580
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib56b38909648910ad2e36eca3dbb1db1a5f8b94e
Gerrit-Change-Number: 25580
Gerrit-PatchSet: 1
Gerrit-Owner: Zoltan Borok-Nagy <[email protected]>

Reply via email to