[英]Can I pass parameters to multiple notebooks in a Synapse pipeline?
I have a Synapse pipeline with 10 notebooks executed in sequence.我有一个 Synapse 管道,其中有 10 个笔记本按顺序执行。 These notebooks take various parameters, some of which are common to all or a few of the notebooks.
这些笔记本采用各种参数,其中一些参数对所有或部分笔记本是通用的。 Rather than define the value of these parameters for each notebook (which is repetitive) I wonder can I define them once at the pipeline level and pass them into each notebook that uses them?
而不是为每个笔记本定义这些参数的值(这是重复的)我想知道我是否可以在管道级别定义一次并将它们传递到使用它们的每个笔记本中?
So far I tried defining one of the parameters at the pipeline level myparam
with a default value and then in the notebook parameters I reference the pipeline parameter as @pipeline().parameter.myparam
which I thought would take the default value defined at the pipeline level - but it doesn't.到目前为止,我尝试使用默认值在管道级别
myparam
定义一个参数,然后在笔记本参数中我将管道参数引用为@pipeline().parameter.myparam
我认为它会采用管道中定义的默认值水平 - 但事实并非如此。 Is what I'm trying to do even possible?我正在尝试做的事情有可能吗? Thanks in advance.
提前致谢。
Yes, you can pass parameters to multiple notebooks in a Synapse pipeline.是的,您可以将参数传递给 Synapse 管道中的多个笔记本。
As per this official document ,根据这份官方文件,
You can use parameters to pass external values into pipelines, datasets, linked services, and data flows.
您可以使用参数将外部值传递到管道、数据集、链接服务和数据流中。 Once the parameter has been passed into the resource, it cannot be changed.
一旦将参数传递到资源中,就无法更改。 By parameterizing resources, you can reuse them with different values each time.
通过参数化资源,您可以每次使用不同的值重用它们。 Parameters can be used individually or as a part of expressions.
参数可以单独使用,也可以作为表达式的一部分使用。 JSON values in the definition can be literal or expressions that are evaluated at runtime.
JSON 定义中的值可以是文字或在运行时计算的表达式。
Below are some referred Parameters example which might help you.以下是一些可能对您有所帮助的参考参数示例。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.