我们如何在avro中声明一个简单的时间戳。type:timestamp doesnt 工作。所以我实际上使用了一个简单的字符串,但我希望它作为时间戳(这是我的变量:27/01/1999 08:45:34)谢谢您
bxjv4tth1#
使用avro的逻辑类型:
{"name":"timestamp","type": {"type": "string", "logicalType": "timestamp-millis"}
一些有用的链接:avro时间戳毫秒avro逻辑类型关于avro时间戳的hortonworks社区问题
1条答案
按热度按时间bxjv4tth1#
使用avro的逻辑类型:
一些有用的链接:
avro时间戳毫秒
avro逻辑类型
关于avro时间戳的hortonworks社区问题