You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
execution_plans: add metrics collector and re-writer
This change introduces new structs / concepts:
1. MetricsCollector
Collects metrics from an instance of `StageExec` (which is a task) using a
pre-order traversal. It stops at any `ArrowFlightReadExec` nodes and collects
child task metrics from them, if there are any.
2. MetricsWrapperExec
A new `ExecutionPlan` node which cannot be executed. It wraps a "real" `ExecutionPlan`
node and stores metrics. This let's you "override" the `metrics()` method on
`ExecutionPlan` nodes. This override applies when displaying the plan as well.
This struct is private.
3. Task MetricsRewriter
Rewrites a task by wrapping each node in a `MetricsWrapperExec`.
Informs #123.
0 commit comments