Data Factory - append fields to JSON sink

被刻印的时光 ゝ 提交于 2019-12-11 15:18:04

问题


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.

How can this be accomplished?


回答1:


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())


来源:https://stackoverflow.com/questions/51883988/data-factory-append-fields-to-json-sink

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!