[SPARK-54539][SQL] TaskMetrics add spillTime metrics
What changes were proposed in this pull request?
TaskMetrics add spillTime metrics for task execution.
Why are the changes needed?
If we have this metrics, we can directly know that longer jobs have longer spill times, and we can optimize the job by adjusting the parallelism parameter.
Does this PR introduce any user-facing change?
After this pr then we can add spill cost in each corresponding execution node's metrics, then user can know the cost.
How was this patch tested?
Existed UT
Was this patch authored or co-authored using generative AI tooling?
No
@cloud-fan How about this metrics? If it's ok, later I will add this in all related node.
do we have similar metrics for SQL plan nodes?
do we have similar metrics for SQL plan nodes?
If it's OK, later I will add this metrics to below SQL plan nodes.
ping @cloud-fan How about this?