dbutils.notebook.run
The dbutils.notebook.run lets you pass parameters to and return values from a notebook.
This transformation was deprecated, now we manage this element with the sfutils file.
Description
The dbutils.notebook.run
is used to run another notebook in a different process, you can pass some parameters and a timeout when calling it.
Sample
result = dbutils.notebook.run("/Users/your_user/called_notebook", 60, {"param1": "value1", "param2": "value2"})
print(f"Result: {result}")
Snowflake
This DBX element has equivalent in Snowflake, the SMA transforms this element to EXECUTE NOTEBOOK
and use the SQL function to execute it.
result = spark.sql("EXECUTE NOTEBOOK <DATABASE>.<SCHEMA>.called_notebook('param1 = value1 param2 = value2')")
print(f"Result: {result}")
Related EWIs
This element does not have an associated EWI.
Last updated