简体   繁体   English

我可以将参数传递给 Synapse 管道中的多个笔记本吗?

[英]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.

相关问题 一个管道可以将参数/参数传递给 aws sagemaker 管道中的另一个管道吗? - can one pipeline pass parameters/arguments to another pipeline in aws sagemaker pipeline? Synapse Pipeline - 如何指定 Pipeline Run 的标识? (SP/UAMI 等) - Synapse Pipeline - How do I specify identity for Pipeline Run? (SP/UAMI etc) 如何在数据融合的批处理管道中将参数传递给宏 - How can I pass parameter to Macro in batch Pipeline of Data Fusion 如何将 map 变量传递给 Azure Devops 管道作业? - How can I pass map variable to Azure Devops pipeline job? 我们可以从管道 azure 突触在无服务器池中执行 sql 查询吗? - can we execute sql query in serverless pool from pipeline azure synapse? 我可以在 Azure 环境之外使用 Azure Synapse 功能吗? - Can I use Azure Synapse functionality outside the Azure environment? 动态 REST 调用 Azure Synapse Pipeline - Dynamic REST calls in Azure Synapse Pipeline 使用 Terraform 创建 Azure 突触管道 - Create Azure Synapse Pipeline using Terraform 突触管道从 Datalakes 复制到 DW 错误 - Synapse Pipeline to copy from Datalakes to DW error 如何将参数从 azure 管道传递到 shell 脚本? - How to pass parameters from azure pipeline to shell script?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM