简体   繁体   English

如何从 ADF 复制数据活动中获取给定列的最大值

[英]How to get max of a given column from ADF Copy Data activity

I have a copy data activity for on-premise SQL Server as source and ADLS Gen2 as sink.我有一个本地 SQL 服务器作为源和 ADLS Gen2 作为接收器的复制数据活动。 There is a control table to pickup tableName, watermarkDateColumn and the watermarkDatetime to pull incremental data from the source database.有一个控制表来拾取 tableName、watermarkDateColumn 和 watermarkDatetime 从源数据库中提取增量数据。

After data is pulled/loaded in sink, I want to get the max of the watermarkDateColumn in my dataset.在接收器中提取/加载数据后,我想在我的数据集中获取 watermarkDateColumn 的最大值。 Can it be obtained from @activity('copyActivity1').output ?可以从@activity('copyActivity1').output吗?

I'm not allowed to use one extra lookup activity to query the source table for getting the max(watermarkDateColumn) in pipeline.我不允许使用一个额外的查找活动来查询源表以获取管道中的 max(watermarkDateColumn)。

Copy activity only could be used for data transmission,not for any other aggregation feature.复制活动只能用于数据传输,不能用于任何其他聚合功能。 So @activity('copyActivity1').output won't help.所以 @activity('copyActivity1').output 无济于事。 Since you said you can't use lookup activity, i'm afraid your requirement is not available so far.既然你说你不能使用查找活动,恐怕你的要求到目前为止不可用。

If you prefer not using additional activities, I suggest you using Data Flow Activity instead which is more flexible.There is built-in aggregation feature in the Data Flow Activity.如果你不想使用额外的活动,我建议你使用数据流活动,它更灵活。数据流活动中有内置的聚合功能。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 adf 中按顺序进行复制活动? - How to do copy activity sequentially in adf? 如何在 ADF 中使用作业控制文件或 0 kb 文件(fin)跟踪复制活动? - How to track the copy activity using job control file or 0 kb files(fin) in ADF? 使用Azure数据工厂(ADF)仅从Azure Data Lake存储中复制最新文件 - Copy only the latest file from azure data lake store with Azure Data Factory (ADF) 如何从R的数据表中的文件列中进行文件复制 - How to file copy from a column of files in a data table in R 在Azure数据工厂复制活动之后获取文件列表 - Get files list after azure data factory copy activity 如何将数据从特定表中的一列复制到SQL Server中另一表中的相同命名列 - How to copy data from one column in certain table to same named column in another table in SQL Server 当数据是文本时,如何从一列复制到另一列? (EXCEL) - How to copy from one column to another column when data is text? (Excel) ADF - 如何将具有多个工作表的 Excel 工作表复制到单独的.csv 文件中 - ADF - How to copy an Excel Sheet with Multiple Sheets into separate .csv files 通过Azure数据工厂的复制活动在cosmosDB中保存的数据中添加其他列 - Adding additional column in data being saved in cosmosDB by Azure data factory's copy activity 更改列时如何复制数据 - How to copy data whilst changing column
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM