Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/design-patterns/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure 从列值派生复杂类型的数组_Azure_Azure Data Factory_Azure Data Factory 2_Azure Data Flow - Fatal编程技术网

Azure 从列值派生复杂类型的数组

Azure 从列值派生复杂类型的数组,azure,azure-data-factory,azure-data-factory-2,azure-data-flow,Azure,Azure Data Factory,Azure Data Factory 2,Azure Data Flow,我需要创建ADF工作流,以便: 输入包含以下电话号码结果的列名“phone”: contact[0].number = "xxxxxxxxxx" contact[0].type = "phone" “移动”列的结果是: contact[1].number = "xxxxxxxxxx" contact[1].type = "mobile" 我们在所有的输入行中得到“phone”和“mobile” 源代码是Azure

我需要创建ADF工作流,以便: 输入包含以下电话号码结果的列名“phone”:

contact[0].number = "xxxxxxxxxx"
contact[0].type = "phone"
“移动”列的结果是:

contact[1].number = "xxxxxxxxxx"
contact[1].type = "mobile"
我们在所有的输入行中得到“phone”和“mobile”

源代码是Azure SQL数据库

我需要将其放入json文件中的blob存储中


请帮助我解决此问题。

在数据流中使用派生列,并在表达式生成器中构建结构。将您的顶层结构称为“联系人”。现在,使用collect()函数使用聚合转换创建结构行数组。以下是一些例子:


将数组语法与两种结构一起使用
[@(number=Phone,type='Phone'),@(number=Mobile,type='Mobile')]

如何将Mobile和Phone添加到顶级联系人结构中?对于列联系人,我在下面添加了表达式:@(number=Phone,type='Phone'),这解决了问题。谢谢