串行circe.json flink
scala flink 在 circe.json 格式中序列化JSON的问题。
我正在使用lib flink-adt type typeInformation 序列化器。
implicit val jsonInfo: TypeInformation[Json] =
deriveTypeInformation[Json]
这是错误消息:
magnolia: child class BiggerDecimalJsonNumber of class JsonNumber is neither final nor a case class
我还尝试了此。
implicit val jsonInfo: TypeInformation[Json] =
TypeInformation.of(classOf[Json])
它会编译,但是当我运行单位测试时崩溃。
Scala Flink has problems serializing json in circe.Json format.
I am using lib flink-adt to derive TypeInformation that contains the serializer.
implicit val jsonInfo: TypeInformation[Json] =
deriveTypeInformation[Json]
Here is the error message:
magnolia: child class BiggerDecimalJsonNumber of class JsonNumber is neither final nor a case class
I also tried this.
implicit val jsonInfo: TypeInformation[Json] =
TypeInformation.of(classOf[Json])
It compiles but crashes when I run unit test.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通过添加
new executionConfig()
使用该代码来使序列化器工作:
I got the serializer to work by adding
new ExecutionConfig()
This code worked: