我收到了一个关于定义字段的警告:
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"}]} 知道怎么解决吗?
https://stackoverflow.com/questions/73125255
复制相似问题