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.

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!