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.
1条答案
按热度按时间uqzxnwby1#
I got the serializer to work by adding
new ExecutionConfig()
This code worked: