Azure数据工厂将EnqueuedTimeUtc转换为Unix时间戳

标签 azure azure-data-factory unix-timestamp azure-eventhub

我有一个从 EventHub 获取数据的数据流。

enter image description here

事件有一个名为EnqueuedTimeUtc:的系统属性

enter image description here

我想将 EnqueuedTimeUtc 的值转换为 Unix 时间戳或至少转换为 DateTime 在数据工厂中。

还有一个名为SystemProperties的属性。它有一个名为 x-opt-enqueued-time 的属性。我想获取 x-opt-enqueued-time 的值作为一列。

enter image description here

但是,如果我尝试解析 SystemProperties 列,则会出现以下错误:

enter image description here

有办法做到这一点吗?

谢谢!

最佳答案

toTimestamp('04/12/2022 08:40:39 PM','MM/dd/yyyy HH:mm:ss') - toTimestamp('1970-01-01 00:00:00.000', 'yyyy -MM-dd HH:mm:ss.SSS')

关于Azure数据工厂将EnqueuedTimeUtc转换为Unix时间戳,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71847509/

相关文章:

基于 Azure 的方法向外部服务发送 100000 个请求

Azure 数据工厂 - if 条件表达式生成器

azure - 将数据从 Sql 服务器复制到 Databricks delta Lake 时(sql 笔记本事件)空白值填充为 Null 值

javascript - 从unix时间戳获取日分辨率

math - 以数学方式从UNIX时间戳计算天数?

asp.net-mvc - 如何将辅助角色部署到 azure 中?

azure - 在 azure 上部署速度非常慢 : 'Warning: Unable to connect to the remote server'

azure - Azure 函数中的查询在部署几次后停止工作?

sql - 按 Unix 时间戳 DESC 或 ASC 排序?

azure - 数据工厂 - 集成运行时状态警报