首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Avro模式定义中的警告

Avro模式定义中的警告
EN

Stack Overflow用户
提问于 2022-07-26 14:31:13
回答 1查看 215关注 0票数 0

我收到了一个关于定义字段的警告:

代码语言:javascript
运行
复制
Ignored the logicalType property ("timestamp-millis"). It should probably be nested inside the "type" for the field.

{"name": "leaving", "type": ["null" ,"long"], "logicalType": "timestamp-millis", "default": null, "doc": "leaving timestamp"}

我试着把它改成:

代码语言:javascript
运行
复制
{"name": "leaving", "type": {"type": ["null" ,{"type": "long", "logicalType": "timestamp-millis"}]}, "doc": "leaving timestamp"}

现在,由于模式无效,它根本无法工作。

错误:

代码语言:javascript
运行
复制
InvocationTargetException: No type: {"type":["null",{"type":"long","logicalType":"timestamp-millis"}]} 

知道怎么解决吗?

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73125255

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档