gpt4 book ai didi

Azure DF 参数化

转载 作者:行者123 更新时间:2023-12-03 06:53:14 26 4
gpt4 key购买 nike

我正在尝试参数化 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com