数据工厂-将字段附加到JSON接收器 [英] Data Factory - append fields to JSON sink

查看:43
本文介绍了数据工厂-将字段附加到JSON接收器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用复制活动将JSON源数据集复制/转换为JSON接收器数据集.需要在输出中附加一些审核字段-例如使用@utcnow表达式函数的转换日期.

I am using the copy activity to copy/transform a JSON source dataset into JSON sink dataset. Need to append a few audit fields to the output - such as transform date using @utcnow expression function.

这怎么完成?

推荐答案

看来databricks活动很好地处理了此功能.

It looks like the databricks activity handles this functionality pretty well.

df_new = df.select("table.field1","table.field2","table.field3").withColumn("TransferDate", current_timestamp())

这篇关于数据工厂-将字段附加到JSON接收器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆