从 Azure 数据工厂中的整个文件读取非结构化文本

问题描述 投票:0回答:1

我有一个文件,在 ADLS 中以非结构化 txt 形式存在。我想以文本形式读取整个文件内容并将其传递到 Azure 数据工厂中的存储过程。这可以通过 Azure 数据工厂来完成吗?以下是该文件的示例:

Number: 101095
This is a sample 1

ABC

XYZ

END
Number: 101096
This is a sample 2

ABC2

XYZ2

hhhh2

END
Number: 101096
This is a sample 3

ABC3

XYZ3

MMMM3

END
azure azure-data-factory etl azure-synapse
1个回答
0
投票

我想以文本形式读取整个文件内容并将其传递到 Azure 数据工厂中的存储过程。

要从 .txt 文件中读取全部内容,您需要使用查找活动。

enter image description here

添加包含 .txt 文件以及数据示例中不存在的列和行分隔符的 ADLS 数据集“ ` ”。

enter image description here

文件数据预览:

enter image description here

然后您可以使用

@activity('Lookup1').output.value[0].Prop_0

访问它
© www.soinside.com 2019 - 2024. All rights reserved.