cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Why are the get..Id() functions returning 'some(123456)' instead of just the id?

fury88
New Contributor II

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

1 REPLY 1

fury88
New Contributor II

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.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group