Fixed the metric creation code for the spilled_bytes metric of CometSortExec. I've also examined all other metrics to make sure that similar problem does not happen to other comet operators.
How are these changes tested?
This fix is so obvious so it may not worth adding a test for it. I've verified the fix manually on Spark UI:
Which issue does this PR close?
Closes #983.
Rationale for this change
Please refer to https://github.com/apache/datafusion-comet/issues/983 for details.
What changes are included in this PR?
Fixed the metric creation code for the
spilled_bytes
metric ofCometSortExec
. I've also examined all other metrics to make sure that similar problem does not happen to other comet operators.How are these changes tested?
This fix is so obvious so it may not worth adding a test for it. I've verified the fix manually on Spark UI: