Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@pawel-big-lebowski
Copy link
Collaborator

Closes #3931

return Optional.empty();
}
SparkSession sparkSession = queryExecution.sparkSession();
SparkSession sparkSession = Spark4CompatUtils.getSparkSession(queryExecution);
Copy link

@romangershgorin romangershgorin Jul 27, 2025

Choose a reason for hiding this comment

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

might be a stupid question, having very limited knowledge in Java, but how does it work without import of Spark4CompatUtils? I tried to build locally with this commit, but getting error: cannot find symbol. (using commands ./buildDependencies.sh && ./gradlew publishToMavenLocal -Pscala.binary.version=2.13 to build required jar). Though importing like this import io.openlineage.spark.agent.Spark4CompatUtils; did not work for me also, still can't find symbol. Maybe something missing in gradle config?
Another question, is that correct that Utils are defined as part of tests, but used in main source code here?
OpenLineage/integration/spark/app/src/test/java/io/openlineage/spark/agent/Spark4CompatUtils.java
OpenLineage/integration/spark/app/src/main/java/io/openlineage/spark/agent/lifecycle/ContextFactory.java
Does it work like this?

Choose a reason for hiding this comment

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

@pawel-big-lebowski I tried to move the whole Spark4CompatUtils file to src instead of tests and it helped to build both code and tests, would that be a good way to fix build? I can commit such change here if you agree with it

pawel-big-lebowski and others added 2 commits August 6, 2025 16:48
Signed-off-by: Pawel Leszczynski <[email protected]>
Signed-off-by: Dominik Dębowczyk <[email protected]>
@ddebowczyk92 ddebowczyk92 force-pushed the spark/fix-context-factory-spark4 branch from cbb0409 to 9cc79d8 Compare August 6, 2025 14:48
Signed-off-by: Dominik Dębowczyk <[email protected]>
@ddebowczyk92 ddebowczyk92 merged commit 6b0431d into main Aug 7, 2025
30 checks passed
@ddebowczyk92 ddebowczyk92 deleted the spark/fix-context-factory-spark4 branch August 7, 2025 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:integration/spark language:java Uses Java programming language

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] io.openlineage.spark.agent.lifecycle.ContextFactory compatibility with Spark 4

4 participants