Azure DF 参数化

标签 azure azure-data-factory

我正在尝试参数化 Azure DF UI 中的映射数据流。我在管道中声明一个变量,它从查找值中获取结果 - 表的当前时间戳。在映射数据流中,虽然我定义了一个参数,但我想获取管道中声明的变量的值。该变量是字符串类型,保存当前时间戳值。

this is the pipeline in debug

the dataflow parameter is taking the value of the variable

I am setting empty string as a default value - I tried also setting it to take variable value

that is a filter expression to filter based on this timestamp

所以我想我必须为数据流内的参数值添加默认值。应该如何使用表达语言来完成此操作?预先感谢您!

最佳答案

当您从管道传递数据流参数值时,根本不需要默认值。您可以保持原样,而不提供任何值.

enter image description here

调试管道时,该值仅从管道中获取,而不是从默认值中获取。

对于每个转换的数据预览,您可以通过下面的单击查看参数来提供临时硬编码值。它将帮助我们检查数据流预览是否给出正确的结果。

enter image description here

请查看我的重现供您引用:

这是我的示例数据

enter image description here

在数据流中创建 myparam 参数后,我已将变量 myname 从管道传递给它。在这里,我将 myname 变量的值指定为 @string('Rakesh') 来过滤此名称。

enter image description here

不要选中该复选框。

过滤器中的条件为Name==$myparam

结果:

enter image description here

关于Azure DF 参数化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73369960/

相关文章:

azure - 如何在Azure函数中的数据表上使用 "AsEnumerable()"?

c# - 尝试将 sessionState 存储在 Windows Azure Web 服务的 AppFabricCache 中时引发 SocketException

azure - 使用 OAuth2 从 Azure 数据工厂向 Azure DevOps 发出 REST API 请求

azure - 使用 Azure 数据工厂仅复制特定扩展 blob

node.js - 如何通过Azure创建运行管道API触发管道?

c# - Azure.Storage.Blobs v12.x.x 中的 ContentHash 为 null

azure - 使用 Azure Data Lake gen2 列出 blob 时出现问题

azure-data-factory - 使用变量的 Azure 数据工厂复制

Azure 数据工厂复制事件非常慢

azure - 逻辑应用失败,但调用此逻辑应用的 ADF 中的 Web 事件具有成功状态