libenchao commented on a change in pull request #11830: URL: https://github.com/apache/flink/pull/11830#discussion_r521336797
########## File path: flink-table/flink-table-runtime-blink/src/main/java/org/apache/flink/table/runtime/dataview/PerKeyStateDataViewStore.java ########## @@ -54,6 +61,9 @@ public PerKeyStateDataViewStore(RuntimeContext ctx) { keySerializer, valueSerializer); + if (stateTtlConfig.isEnabled()) { + mapStateDescriptor.enableTimeToLive(stateTtlConfig); Review comment: also need to make `nullStateDescriptor` aware of the TTL? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to 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