Open jcho7022 opened 2 years ago
Scala 3 enums can be created as compatibly with Java enums, and those work out of the box in Flink:
https://docs.scala-lang.org/scala3/reference/enums/enums.html#compatibility-with-java-enums
Edit: I tried and Scala 3 enums don't work out of the box in Flink, it seems like the Java enum compat is not enough. However it looks like this lib has support for Scala 3 enums?
There is a test showing support for Scala enums (even without the Java compatibility): https://github.com/findify/flink-adt/blob/8926841b826fbdb0512166e31a75ecd1ee60811a/src/test/scala-3/io/findify/flinkadt/Scala3EnumTest.scala
I just guess the "old" Scala 2 Enumeration
are not supported ?
Or ist just the TypeInformation
for SomeEnum
missing ?
Hi, I'm testing out this library, and it seems that scala
Enumeration
types aren't supported in this library.Test code:
Output:
Thank you.