ADF测试表达功能 [英] ADF testing expression function

查看:59
本文介绍了ADF测试表达功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在ADF中测试表达式功能?

Is there a way to test expression functions in ADF?

例如:我想在我的触发参数中添加此表达式: @ {adddays(utcNow(),-10)}

eg: I want to add this expression in my trigger parameter : @{adddays(utcNow(),-10)}

测试它的唯一方法是创建一个1分钟的触发器,然后查看它是否执行.相同的表达式在调试或手动触发上将不起作用,因为其中的文本框不会展开.

The only way to test it is by creating a 1 min trigger and see if it executes. The same expression will not work on debug or manual trigger as the text boxes there will not expand.

还有其他方法可以轻松地测试这些吗?

Is there any other way to test these easily?

推荐答案

测试ADF表达式(不包括映射数据流)的最简单方法是使用设置变量"活动.只需创建一个测试变量,然后将表达式复制到其中,然后运行管道即可.然后,您可以在输出"窗口中查看表达式的输出:

The easiest way to test ADF expressions (not including Mapping Data Flows) is to use a Set Variable activity. Just create a test variable and copy the expression into it and run the pipeline. You can then view the output from the expression in the Output window:

管道完成后,单击输出"菜单上的输出"按钮以查看变量的内容:

Click the Output button on the Output menu once your pipeline has completed to view the contents of the variable:

这篇关于ADF测试表达功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆