将参数传递和访问USQL脚本 [英] Passing&Accessing parameters to USQL script

查看:72
本文介绍了将参数传递和访问USQL脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Team

我正在尝试创建管道.我已按照以下步骤操作.

I am trying to create a pipeline.I have followed the below steps.

步骤1:我创建了一个查找活动,该活动具有来自Azure SQL数据库的输入作为存储过程.该存储过程将返回三列.我已经在azure SQL数据库的架构中给出了三列

Step 1: I have created a lookup activity which has the input as store procedure from Azure SQL database. The stored procedure will return three columns.I have given the three columns in the schema of azure SQL database

步骤2:我已经为每个活动创建了一个For,并将其连接到lookup活动.

Step 2:I have created a For each activity and connected it to the lookup activity .

步骤3:我创建了一个复制活动,并且在ifeach内创建了一个活动.

完成上述所有步骤后,情况就来了,在U-SQL脚本中,我需要插入 三列.

Here comes the situation,After doing all the above steps,  .In the U-SQL script i need to insert the three columns dynamically .

请让我知道在哪里创建参数以及如何使用U-SQL动态插入参数 脚本.

Please let me know where to create the parameters and how to insert the parameters dynamically using U-SQL script.

谢谢

香卡

shankar

推荐答案

你好Shankar,

Hi Shankar,

如果我理解正确,则查找活动将返回三列,因此您只需要在复制活动之后链接U-SQL活动,并传递' @activity('Lookup1').output.value '作为U-SQL中的参数.请参见下面的图片:

If I understand correctly, the look up activity returns three columns, so you just need to chain the U-SQL activity after copy activity, and pass the '@activity('Lookup1').output.value' to parameter in U-SQL. Please see the pic below:

谢谢.


这篇关于将参数传递和访问USQL脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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