Github user hequn8128 commented on a diff in the pull request:

    https://github.com/apache/flink/pull/4471#discussion_r158488989
  
    --- Diff: 
flink-libraries/flink-table/src/test/scala/org/apache/flink/table/runtime/stream/table/JoinITCase.scala
 ---
    @@ -0,0 +1,262 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements.  See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership.  The ASF licenses this file
    + * to you under the Apache License, Version 2.0 (the
    + * "License"); you may not use this file except in compliance
    + * with the License.  You may obtain a copy of the License at
    + *
    + *     http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.flink.table.runtime.stream.table
    +
    +import org.apache.flink.api.scala._
    +import org.apache.flink.streaming.api.scala.StreamExecutionEnvironment
    +import org.apache.flink.table.api.{StreamQueryConfig, TableEnvironment}
    +import org.apache.flink.table.api.scala._
    +import org.apache.flink.table.runtime.utils.{StreamITCase, 
StreamingWithStateTestBase}
    +import org.junit.Assert._
    +import org.junit.Test
    +import org.apache.flink.api.common.time.Time
    +import org.apache.flink.streaming.api.TimeCharacteristic
    +import org.apache.flink.table.functions.aggfunctions.CountAggFunction
    +import 
org.apache.flink.table.runtime.stream.table.GroupWindowITCase.TimestampAndWatermarkWithOffset
    +import 
org.apache.flink.table.runtime.utils.JavaUserDefinedAggFunctions.{CountDistinct,
 WeightedAvg}
    +import org.apache.flink.types.Row
    +
    +import scala.collection.mutable
    +
    +class JoinITCase extends StreamingWithStateTestBase {
    +
    +  private val queryConfig = new StreamQueryConfig()
    +  queryConfig.withIdleStateRetentionTime(Time.hours(1), Time.hours(2))
    --- End diff --
    
    Hi, maybe we can keep it. At least we can cover some logics in if (`if 
(stateCleaningEnabled && timerState.value() == 0)`).


---

Reply via email to