在 Azure 数据工厂的数据流中获取数据湖元数据

问题描述

我想将复制镶木地板文件的时间戳作为派生列添加到数据流中的数据帧中。
在源模块中,我可以通过上次修改过滤拼花 文件,这让我认为应该可以通过派生列转换访问文件的元数据,包括复制的时间戳,但我在Microsoft documentation

enter image description here

解决方法

没有函数可以获取数据流表达式中的最后修改时间。

作为一种解决方法,您可以创建一个 Get Metadata 活动来获取它,然后将其值传递给数据流中的参数。

enter image description here

表达式:@activity('Get Metadata1').output.lastModified

enter image description here