Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
Signed-off-by: Partho Sarthi <psarthi@nvidia.com>
  • Loading branch information
parthosa committed Sep 19, 2024
1 parent cd4e32f commit 9bc9d10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ object DatabricksParseHelper extends Logging {
// Implicitly define JSON formats for deserialization using DefaultFormats
implicit val formats: Formats = DefaultFormats
// Extract and deserialize the JValue object into a Map[String, String]
// TODO: Instead of only extracting the first value, we should consider extracting all values
// TODO: Currently, only the first mapping in the list is used.
// This limitation exists because we cannot differentiate between
// these operators in the SparkPlan.
json.extract[Map[String, List[String]]].mapValues(_.head)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ import org.apache.spark.sql.rapids.tool.profiling.{ApplicationInfo, SparkPlanInf
object GenerateDot {
val GPU_COLOR = "#76b900" // NVIDIA Green
val CPU_COLOR = "#0071c5"
// TODO: Add color for Photon nodes
val TRANSITION_COLOR = "red"

def formatMetric(m: SQLMetricInfo, value: Long): String = {
Expand Down

0 comments on commit 9bc9d10

Please sign in to comment.