Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,17 @@ private static List<PlanNodeStats> getPlanNodeStats(TaskStats taskStats)
planNodeCpuMillis.merge(planNodeId, cpuMillis, Long::sum);

planNodeBlockedMillis.merge(planNodeId, operatorStats.getBlockedWall().toMillis(), Long::sum);
planNodeSpilledDataSize.merge(planNodeId, operatorStats.getSpilledDataSize().toBytes(), Long::sum);

// A pipeline like hash build before join might link to another "internal" pipelines which provide actual input for this plan node
// A plan node like LocalExchange consists of LocalExchangeSource which links to another pipeline containing LocalExchangeSink
if (operatorStats.getPlanNodeId().equals(inputPlanNode) && !pipelineStats.isInputPipeline()) {
continue;
}
// Skip DynamicFilterSourceOperator as input operator as for join build side HashBuilderOperator metrics
Comment thread
sopel39 marked this conversation as resolved.
Outdated
// should be reported
if (operatorStats.getOperatorType().equals("DynamicFilterSourceOperator")) {
continue;
}
if (processedNodes.contains(planNodeId)) {
continue;
}
Expand All @@ -128,7 +134,6 @@ private static List<PlanNodeStats> getPlanNodeStats(TaskStats taskStats)

planNodeInputPositions.merge(planNodeId, operatorStats.getInputPositions(), Long::sum);
planNodeInputBytes.merge(planNodeId, operatorStats.getInputDataSize().toBytes(), Long::sum);
planNodeSpilledDataSize.merge(planNodeId, operatorStats.getSpilledDataSize().toBytes(), Long::sum);
processedNodes.add(planNodeId);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,13 +247,6 @@ private static Map<String, String> translateOperatorTypes(Set<String> operators)
"HashBuilderOperator", "Right (build) ");
}

if (operators.contains("LookupJoinOperator") && operators.contains("DynamicFilterSourceOperator")) {
Comment thread
sopel39 marked this conversation as resolved.
Outdated
// join plan node
return ImmutableMap.of(
"LookupJoinOperator", "Left (probe) ",
"DynamicFilterSourceOperator", "Right (build) ");
}

return ImmutableMap.of();
}

Expand Down