-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serializing Option fields in a state results in unexpected behaviour during tests #209
Comments
I think this could be familiar issue. CC @arnaud-daroussin Could you try to disable Kryo doing this in your test? env.getConfig.disableGenericTypes() |
Also, what if you create and setup explicit serialiser like here? https://github.com/flink-extended/flink-scala-api/blob/master/modules/examples/src/test/scala/org/example/CustomTriggerTests.scala#L73 |
|
@lukas-mi ok, great. Does Flink fail with some Kryo error when |
It did not make a difference, assertion still failed with: |
I see. Interesting, thanks for checking. @arnaud-daroussin do you think that using |
Hi, I think
And when I test:
It is working, meaning no Kryo fallback occurred. @lukas-mi, can you share with us your full test? To be sure we are not missing something. Thanks |
I've encountered an odd behavior when testing my Flink application that does stateful processing: the state produced by a stateful function contains
Option
fields that when areNone
cannot be asserted correctly by the Scala test suite.Setup:
KeyedProcessFunction
with a state of a case class type:new ValueStateDescriptor[MyState]("myState", MyState.typeInfo)
Some("test-value")
Using:
What could be the issue?
The text was updated successfully, but these errors were encountered: