如何每行输出1个文件?

时间:2019-09-16 21:14:45

标签: azure-data-lake u-sql

是否可以为每条记录输出1个文件?

我正在尝试使用usin文件集为每个记录创建1个文件,并在输出文件名中创建RecordId

SET @@FeaturePreviews = "DataPartitionedOutput:on";
DECLARE @uriPrefix string = "/16";
USE MyDatabase;
USE SCHEMA dbo;
REFERENCE ASSEMBLY [Microsoft.Analytics.Samples.Formats];
@all_joins=SELECT *, Guid.NewGuid().ToString() AS [RecordId] FROM MYTABLE;
OUTPUT @all_joins
TO @uriPrefix + "/output/{RecordId}.tsv"
USING new Microsoft.Analytics.Samples.Formats.Xml.XmlOutputter("PatientEntry");

但是,我得到的输出是只有1个文件!

enter image description here

0 个答案:

没有答案