Skip to content

Commit

Permalink
[FLINK-33921][table] Cleanup usage of deprecated IdleStateRetentionTi…
Browse files Browse the repository at this point in the history
…me related method in org.apache.flink.table.api.TableConfig
  • Loading branch information
liyubin117 committed Dec 11, 2024
1 parent 0e6dc41 commit 1e22194
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ class StreamTableEnvironmentImplTest {
val table = tEnv.fromDataStream(elements)
tEnv.toDataStream(table)

assertThat(tEnv.getConfig.getMinIdleStateRetentionTime).isEqualTo(retention.toMillis)
assertThat(tEnv.getConfig.getMaxIdleStateRetentionTime).isEqualTo(retention.toMillis * 3 / 2)
assertThat(tEnv.getConfig.getIdleStateRetention.toMillis).isEqualTo(retention.toMillis)
assertThat(tEnv.getConfig.getIdleStateRetention.toMillis * 3 / 2).isEqualTo(retention.toMillis * 3 / 2)
}

@Test
Expand All @@ -63,8 +63,8 @@ class StreamTableEnvironmentImplTest {
val table = tEnv.fromDataStream(elements)
tEnv.toRetractStream[Row](table)

assertThat(tEnv.getConfig.getMinIdleStateRetentionTime).isEqualTo(retention.toMillis)
assertThat(tEnv.getConfig.getMaxIdleStateRetentionTime).isEqualTo(retention.toMillis * 3 / 2)
assertThat(tEnv.getConfig.getIdleStateRetention.toMillis).isEqualTo(retention.toMillis)
assertThat(tEnv.getConfig.getIdleStateRetention.toMillis * 3 / 2).isEqualTo(retention.toMillis * 3 / 2)
}

private def getStreamTableEnvironment(
Expand Down

0 comments on commit 1e22194

Please sign in to comment.