Last active
August 31, 2021 08:35
-
-
Save nescobar/0ff427e4396b6b31c5a0055576672fce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%scala | |
val runId = dbutils.notebook.getContext.currentRunId.toString | |
Seq(runId).toDF("run_id").createOrReplaceTempView("run_id") | |
val notebookPath = dbutils.notebook.getContext().notebookPath.get | |
Seq(notebookPath).toDF("notebook_path").createOrReplaceTempView("notebook_path") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment