Skip to content

Commit a847d94

Browse files
authored
Support Spark 4.1 by removing mention to StreamExecution class (#10228)
* Do not rely on StreamExecution class * re-enable Spark 4.1 in CI
1 parent 0204feb commit a847d94

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

dd-java-agent/instrumentation/spark/spark_2.13/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ muzzle {
1616
group = "org.apache.spark"
1717
module = "spark-sql_$scalaVersion"
1818
versions = "[4.0.0,)"
19-
skipVersions += "4.1.0" // FIXME: Temporary skip `4.1.0` as we need more time to support it.
2019
javaVersion = 17
2120
}
2221
}

dd-java-agent/instrumentation/spark/src/main/java/datadog/trace/instrumentation/spark/AbstractDatadogSparkListener.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
import org.apache.spark.sql.execution.SQLExecution;
5959
import org.apache.spark.sql.execution.SparkPlanInfo;
6060
import org.apache.spark.sql.execution.metric.SQLMetricInfo;
61-
import org.apache.spark.sql.execution.streaming.StreamExecution;
6261
import org.apache.spark.sql.execution.ui.SparkListenerSQLExecutionEnd;
6362
import org.apache.spark.sql.execution.ui.SparkListenerSQLExecutionStart;
6463
import org.apache.spark.sql.streaming.SourceProgress;
@@ -1264,7 +1263,7 @@ private static String getStreamingBatchKey(Properties properties) {
12641263
return null;
12651264
}
12661265

1267-
Object queryId = properties.get(StreamExecution.QUERY_ID_KEY());
1266+
Object queryId = properties.get("sql.streaming.queryId");
12681267
Object batchId = properties.get("streaming.sql.batchId");
12691268

12701269
if (queryId == null || batchId == null) {

0 commit comments

Comments
 (0)