如何根据 azure databricks 中的列值将静态值传递给动态值

how to pass static value into dynamic on basis of column value in azure databricks

如何根据 Azure 中的列值将静态值传递给动态值 data bricks 目前,我有 13 个笔记本及其预定,所以我只想安排一个笔记本,此外,我在 13 个笔记本中单独定义的列(13 行)数据,所以我如何动态传递该值。

您可以create different jobs that refer the single notebook, pass parameters to a job and then retrieve these parameters using Databricks Widgets(小工具适用于所有语言)。在笔记本中,它将如下所示(例如,在 Python 中):

# this is necessary only if you execute notebook interactively
dbutils.widgets.text("param1_name", "default_value", "description")
# get job parameter
param1 = dbutils.widgets.get("param1_name")
# ... use param1