Why are the get..Id() functions returning 'some(123456)' instead of just the id?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2022 09:50 AM
Hey fellow users,
I've successfully retrieved the notebook context during job runs and there are several getId calls. For some reason when the ids are returned, they are wrapped in a some() instead of just the number. Does anyone know why this is the case and how we can get the number from this without fancy parsing?
Thanks!
-MF
- Labels:
-
Functions
-
Notebook Context
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2022 01:15 PM
Well, my post for me is irrelevant now!! I just stumbled across this beauty which avoids me having to do any of this and deal with odd return values.
How to get the Job ID and Run ID and save into a database (databricks.com)
Are the braces {{job_id}} nomenclature reference documented anywhere? I didn't even know it existed.

