Skip to content

Commit

Permalink
[VL] Correct unit displayed on SQL UI for spill-related metrics (apac…
Browse files Browse the repository at this point in the history
  • Loading branch information
zhztheplayer authored Jan 25, 2024
1 parent 5ca4ed2 commit bee73ce
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ class MetricsApiImpl extends MetricsApi with Logging {
"aggNumMemoryAllocations" -> SQLMetrics.createMetric(
sparkContext,
"number of memory allocations"),
"aggSpilledBytes" -> SQLMetrics.createMetric(sparkContext, "number of spilled bytes"),
"aggSpilledBytes" -> SQLMetrics.createSizeMetric(sparkContext, "number of spilled bytes"),
"aggSpilledRows" -> SQLMetrics.createMetric(sparkContext, "number of spilled rows"),
"aggSpilledPartitions" -> SQLMetrics.createMetric(
sparkContext,
Expand Down Expand Up @@ -356,7 +356,9 @@ class MetricsApiImpl extends MetricsApi with Logging {
"numMemoryAllocations" -> SQLMetrics.createMetric(
sparkContext,
"number of memory allocations"),
"spilledBytes" -> SQLMetrics.createMetric(sparkContext, "total bytes written for spilling"),
"spilledBytes" -> SQLMetrics.createSizeMetric(
sparkContext,
"total bytes written for spilling"),
"spilledRows" -> SQLMetrics.createMetric(sparkContext, "total rows written for spilling"),
"spilledPartitions" -> SQLMetrics.createMetric(sparkContext, "total spilled partitions"),
"spilledFiles" -> SQLMetrics.createMetric(sparkContext, "total spilled files")
Expand Down Expand Up @@ -443,7 +445,7 @@ class MetricsApiImpl extends MetricsApi with Logging {
"hashBuildNumMemoryAllocations" -> SQLMetrics.createMetric(
sparkContext,
"number of hash build memory allocations"),
"hashBuildSpilledBytes" -> SQLMetrics.createMetric(
"hashBuildSpilledBytes" -> SQLMetrics.createSizeMetric(
sparkContext,
"total bytes written for spilling of hash build"),
"hashBuildSpilledRows" -> SQLMetrics.createMetric(
Expand Down Expand Up @@ -479,7 +481,7 @@ class MetricsApiImpl extends MetricsApi with Logging {
"hashProbeNumMemoryAllocations" -> SQLMetrics.createMetric(
sparkContext,
"number of hash probe memory allocations"),
"hashProbeSpilledBytes" -> SQLMetrics.createMetric(
"hashProbeSpilledBytes" -> SQLMetrics.createSizeMetric(
sparkContext,
"total bytes written for spilling of hash probe"),
"hashProbeSpilledRows" -> SQLMetrics.createMetric(
Expand Down

0 comments on commit bee73ce

Please sign in to comment.