[英]Warning in Avro Schema definition
我收到了一個已定義字段的警告:
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"}
我試圖將其更改為:
{"name": "leaving", "type": {"type": ["null" ,{"type": "long", "logicalType": "timestamp-millis"}]}, "doc": "leaving timestamp"}
現在由於架構無效,它根本不起作用。
錯誤:
InvocationTargetException: No type: {"type":["null",{"type":"long","logicalType":"timestamp-millis"}]}
知道如何解決嗎?
你有重復的type
。 它應該是
{
"name": "leaving",
"type": ["null" , {"type": "long", "logicalType": "timestamp-millis"}],
"doc": "leaving timestamp"
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.