Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip: Support UDF for spark-rapids-tools #1347

Draft
wants to merge 17 commits into
base: dev
Choose a base branch
from
Next Next commit
Compatible with bd spark
  • Loading branch information
hezhengjie committed Sep 14, 2024
commit 5dcc95bb259dcf10b449117e23c1eaccc9f30e25
16 changes: 16 additions & 0 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,21 @@
<hadoop.version>3.3.6</hadoop.version>
</properties>
</profile>
<profile>
<id>bd321</id>
<activation>
<property>
<name>buildver</name>
<value>321</value>
</property>
</activation>
<properties>
<buildver>321</buildver>
<spark.version>${bdspark321.version}</spark.version>
<delta.core.version>${delta20x.version}</delta.core.version>
<hadoop.version>3.3.6</hadoop.version>
</properties>
</profile>
<profile>
<id>release322</id>
<activation>
Expand Down Expand Up @@ -443,6 +458,7 @@
<spark314.version>3.1.4-SNAPSHOT</spark314.version>
<spark320.version>3.2.0</spark320.version>
<spark321.version>3.2.1</spark321.version>
<bdspark321.version>3.2.1-bd1-SNAPSHOT</bdspark321.version>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this available on mvn public repo?

<spark322.version>3.2.2</spark322.version>
<spark323.version>3.2.3</spark323.version>
<spark324.version>3.2.4</spark324.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ class SparkPlanInfoWithStage(
override val children: Seq[SparkPlanInfoWithStage],
metadata: scala.Predef.Map[String, String],
metrics: Seq[SQLMetricInfo],
val stageId: Option[Int]) extends SparkPlanInfo(nodeName, simpleString, children,
val stageId: Option[Int],
planId: Int = 0) extends SparkPlanInfo(nodeName, simpleString, children,
metadata, metrics) {

import SparkPlanInfoWithStage._
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ object ToolsPlanGraph {
def constructGraphNode(id: Long, name: String, desc: String,
metrics: collection.Seq[SQLPlanMetric]): SparkPlanGraphNode = {
try {
new SparkPlanGraphNode(id, name, desc, metrics)
new SparkPlanGraphNode(id, name, desc, metrics, 0)
} catch {
case _: java.lang.NoSuchMethodError =>
dbRuntimeReflection.constructNode(id, name, desc, metrics)
Expand All @@ -229,7 +229,7 @@ object ToolsPlanGraph {
nodes: mutable.ArrayBuffer[SparkPlanGraphNode],
metrics: collection.Seq[SQLPlanMetric]): SparkPlanGraphCluster = {
try {
new SparkPlanGraphCluster(id, name, desc, nodes, metrics)
new SparkPlanGraphCluster(id, name, desc, nodes, metrics, 0)
} catch {
case _: java.lang.NoSuchMethodError =>
dbRuntimeReflection.constructCluster(id, name, desc, nodes, metrics)
Expand Down