Skip to content

Commit

Permalink
SparkIntegration now uses spark connect :)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolanrensen committed Jun 20, 2024
1 parent 03a54eb commit 00d8b26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ abstract class Integration(protected val notebook: Notebook, private val options
"| ${param.index} -> this.${param.name}"
}

println("Sparkified `$name`, this class can be used by Spark in a new cell.")

@Language("kotlin")
val code =
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class SparkIntegration(notebook: Notebook, options: MutableMap<String, String?>)
try {
spark!!.addArtifact(it)
} catch (e: Exception) {
println("Error while adding artifact $it: $e")
if (properties.debug) println("Error while adding artifact $it: $e")
}
}

Expand Down

0 comments on commit 00d8b26

Please sign in to comment.