Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2019 07:49 AM
FYI - for a Python notebook, you can get the run id in Scala and pass it in via the temp table:
Cell N:%scala val runId = dbutils.notebook.getContext .currentRunId .getOrElse(System.currentTimeMillis() / 1000L) .toStringSeq(runId).toDF("run_id").createOrReplaceTempView("run_id")Cell N + 1:
runId = spark.table("run_id").head()["run_id"]