cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.