flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From StefanRRichter <...@git.apache.org>
Subject [GitHub] flink pull request #4963: [FLINK-7475] [core][DataStream API] support update...
Date Wed, 03 Jan 2018 09:53:26 GMT
Github user StefanRRichter commented on a diff in the pull request:

    https://github.com/apache/flink/pull/4963#discussion_r159388540
  
    --- Diff: flink-contrib/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/RocksDBListState.java
---
    @@ -158,4 +158,28 @@ public void mergeNamespaces(N target, Collection<N> sources)
throws Exception {
     			throw new Exception("Error while merging state in RocksDB", e);
     		}
     	}
    +
    +	@Override
    +	public void update(List<V> values) throws Exception {
    +		clear();
    +
    +		if (values != null && !values.isEmpty()) {
    --- End diff --
    
    Is it expected behaviour that adding an empty list will not result in an entry? Maybe
that is correct, but we should double check.


---

Mime
View raw message