Github user aljoscha commented on the pull request:

    
https://github.com/apache/flink/commit/da53953e5366185567515d209fcc85d4006f7e8a#commitcomment-19948322
  
    In 
flink-core/src/main/java/org/apache/flink/api/common/state/FoldingStateDescriptor.java:
    In 
flink-core/src/main/java/org/apache/flink/api/common/state/FoldingStateDescriptor.java
 on line 40:
    I think this won't work because now we don't have all the special 
serialisation logic that `SimpleStateDescriptor` has. What you could do is 
override `getDefaultValue()` and return `null` there. Then, in 
`getInitialValue()` you return the default value and you don't need the extra 
field.
    
    What do you think?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to