StefanRRichter commented on a change in pull request #6707: [FLINK-10157] 
[State TTL] Allow `null` user values in map state with TTL
URL: https://github.com/apache/flink/pull/6707#discussion_r219103133
 
 

 ##########
 File path: 
flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/NullableSerializer.java
 ##########
 @@ -116,7 +139,7 @@ public T copy(T from, T reuse) {
        @Override
        public int getLength() {
                int len = originalSerializer.getLength();
-               return len < 0 ? len : len + 1;
+               return len == 0 ? 1 : -1;
 
 Review comment:
   Followup question: how did it pass the tests?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to