Zoltán Borók-Nagy created IMPALA-15841:
------------------------------------------

             Summary: COMPUTE_PROCESSING_COST clamps the producer cost per row 
to 1 when matching a consumer fragment to its producer
                 Key: IMPALA-15841
                 URL: https://issues.apache.org/jira/browse/IMPALA-15841
             Project: IMPALA
          Issue Type: Bug
          Components: Frontend
            Reporter: Zoltán Borók-Nagy


ProcessingCost.consumerProducerRatio() divides the consumer's cost per row by 
max(1, producer cost per row). Producers often cost less than 1 per row, for 
example a scan or an exchange of a few narrow columns, so the ratio, and with 
it the parallelism the consumer may keep, comes out too low. Partitioned join 
and aggregation fragments above cheap producers are often lowered to one 
instance per node.

Example on master, TpcdsCpuCostPlannerTest (TPC-DS 3TB stats, 10 executors): in 
q80 the partitioned join fragments F02, F10 and F18 run 10 instances each; 
without the clamp they get 120, 90 and 50. q17, q25, q29, q40, q49 and q64 
change the same way. On 12 executors with 16 cores at SF10000, removing the 
clamp makes q17 19% and q25 14% faster, and slows no query.

Could the ratio use the producer cost per row as is? The only caller already 
skips producers with zero cost per row.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to