You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by di...@apache.org on 2021/07/02 12:55:38 UTC

[flink] 03/03: [FLINK-23213][python] Remove BeamTableStatefulPythonFunctionRunner and BeamTableStatelessPythonFunctionRunner and merge them into BeamTablePythonFunctionRunner

This is an automated email from the ASF dual-hosted git repository.

dianfu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git

commit 18dca620fa8a7df6d2b3778cf1a458d7edbd0183
Author: Dian Fu <di...@apache.org>
AuthorDate: Fri Jul 2 14:49:12 2021 +0800

    [FLINK-23213][python] Remove BeamTableStatefulPythonFunctionRunner and BeamTableStatelessPythonFunctionRunner and merge them into BeamTablePythonFunctionRunner
---
 .../python/AbstractStatelessFunctionOperator.java  |  7 +-
 .../AbstractPythonStreamAggregateOperator.java     |  4 +-
 .../python/beam/BeamTablePythonFunctionRunner.java | 13 +++-
 .../BeamTableStatefulPythonFunctionRunner.java     | 76 ----------------------
 .../BeamTableStatelessPythonFunctionRunner.java    | 73 ---------------------
 .../PassThroughPythonAggregateFunctionRunner.java  |  8 ++-
 .../PassThroughPythonScalarFunctionRunner.java     |  7 +-
 .../PassThroughPythonTableFunctionRunner.java      | 11 ++--
 ...ThroughStreamAggregatePythonFunctionRunner.java |  5 +-
 ...amGroupWindowAggregatePythonFunctionRunner.java |  4 +-
 ...ghStreamTableAggregatePythonFunctionRunner.java |  4 +-
 11 files changed, 41 insertions(+), 171 deletions(-)

diff --git a/flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/AbstractStatelessFunctionOperator.java b/flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/AbstractStatelessFunctionOperator.java
index 04f38df..21dd935 100644
--- a/flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/AbstractStatelessFunctionOperator.java
+++ b/flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/AbstractStatelessFunctionOperator.java
@@ -29,7 +29,7 @@ import org.apache.flink.fnexecution.v1.FlinkFnApi;
 import org.apache.flink.python.PythonFunctionRunner;
 import org.apache.flink.streaming.api.operators.python.AbstractOneInputPythonFunctionOperator;
 import org.apache.flink.streaming.runtime.streamrecord.StreamRecord;
-import org.apache.flink.table.runtime.runners.python.beam.BeamTableStatelessPythonFunctionRunner;
+import org.apache.flink.table.runtime.runners.python.beam.BeamTablePythonFunctionRunner;
 import org.apache.flink.table.types.logical.RowType;
 import org.apache.flink.util.Preconditions;
 
@@ -143,7 +143,7 @@ public abstract class AbstractStatelessFunctionOperator<IN, OUT, UDFIN>
 
     @Override
     public PythonFunctionRunner createPythonFunctionRunner() throws IOException {
-        return new BeamTableStatelessPythonFunctionRunner(
+        return new BeamTablePythonFunctionRunner(
                 getRuntimeContext().getTaskName(),
                 createPythonEnvironmentManager(),
                 userDefinedFunctionInputType,
@@ -152,6 +152,9 @@ public abstract class AbstractStatelessFunctionOperator<IN, OUT, UDFIN>
                 getUserDefinedFunctionsProto(),
                 jobOptions,
                 getFlinkMetricContainer(),
+                null,
+                null,
+                null,
                 getContainingTask().getEnvironment().getMemoryManager(),
                 getOperatorConfig()
                         .getManagedMemoryFractionOperatorUseCaseOfSlot(
diff --git a/flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/AbstractPythonStreamAggregateOperator.java b/flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/AbstractPythonStreamAggregateOperator.java
index 0014bd6..ef8e3ea 100644
--- a/flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/AbstractPythonStreamAggregateOperator.java
+++ b/flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/AbstractPythonStreamAggregateOperator.java
@@ -40,7 +40,7 @@ import org.apache.flink.table.planner.plan.utils.KeySelectorUtil;
 import org.apache.flink.table.planner.typeutils.DataViewUtils;
 import org.apache.flink.table.runtime.keyselector.RowDataKeySelector;
 import org.apache.flink.table.runtime.operators.python.utils.StreamRecordRowDataWrappingCollector;
-import org.apache.flink.table.runtime.runners.python.beam.BeamTableStatefulPythonFunctionRunner;
+import org.apache.flink.table.runtime.runners.python.beam.BeamTablePythonFunctionRunner;
 import org.apache.flink.table.runtime.typeutils.InternalTypeInfo;
 import org.apache.flink.table.runtime.typeutils.PythonTypeUtils;
 import org.apache.flink.table.types.logical.RowType;
@@ -192,7 +192,7 @@ public abstract class AbstractPythonStreamAggregateOperator
 
     @Override
     public PythonFunctionRunner createPythonFunctionRunner() throws Exception {
-        return new BeamTableStatefulPythonFunctionRunner(
+        return new BeamTablePythonFunctionRunner(
                 getRuntimeContext().getTaskName(),
                 createPythonEnvironmentManager(),
                 userDefinedFunctionInputType,
diff --git a/flink-python/src/main/java/org/apache/flink/table/runtime/runners/python/beam/BeamTablePythonFunctionRunner.java b/flink-python/src/main/java/org/apache/flink/table/runtime/runners/python/beam/BeamTablePythonFunctionRunner.java
index b59ef4c..1f5dde0 100644
--- a/flink-python/src/main/java/org/apache/flink/table/runtime/runners/python/beam/BeamTablePythonFunctionRunner.java
+++ b/flink-python/src/main/java/org/apache/flink/table/runtime/runners/python/beam/BeamTablePythonFunctionRunner.java
@@ -29,6 +29,7 @@ import org.apache.flink.streaming.api.runners.python.beam.BeamPythonFunctionRunn
 import org.apache.flink.table.types.logical.RowType;
 import org.apache.flink.util.Preconditions;
 
+import com.google.protobuf.GeneratedMessageV3;
 import org.apache.beam.model.pipeline.v1.RunnerApi;
 
 import java.util.Map;
@@ -38,17 +39,19 @@ import static org.apache.flink.table.runtime.typeutils.PythonTypeUtils.toProtoTy
 
 /** A {@link BeamTablePythonFunctionRunner} used to execute Python functions in Table API. */
 @Internal
-public abstract class BeamTablePythonFunctionRunner extends BeamPythonFunctionRunner {
+public class BeamTablePythonFunctionRunner extends BeamPythonFunctionRunner {
 
     private final RowType inputType;
     private final RowType outputType;
+    private final GeneratedMessageV3 userDefinedFunctionProto;
 
-    BeamTablePythonFunctionRunner(
+    public BeamTablePythonFunctionRunner(
             String taskName,
             PythonEnvironmentManager environmentManager,
             RowType inputType,
             RowType outputType,
             String functionUrn,
+            GeneratedMessageV3 userDefinedFunctionProto,
             Map<String, String> jobOptions,
             FlinkMetricContainer flinkMetricContainer,
             KeyedStateBackend keyedStateBackend,
@@ -75,6 +78,12 @@ public abstract class BeamTablePythonFunctionRunner extends BeamPythonFunctionRu
                 outputMode);
         this.inputType = Preconditions.checkNotNull(inputType);
         this.outputType = Preconditions.checkNotNull(outputType);
+        this.userDefinedFunctionProto = Preconditions.checkNotNull(userDefinedFunctionProto);
+    }
+
+    @Override
+    protected byte[] getUserDefinedFunctionsProtoBytes() {
+        return userDefinedFunctionProto.toByteArray();
     }
 
     @Override
diff --git a/flink-python/src/main/java/org/apache/flink/table/runtime/runners/python/beam/BeamTableStatefulPythonFunctionRunner.java b/flink-python/src/main/java/org/apache/flink/table/runtime/runners/python/beam/BeamTableStatefulPythonFunctionRunner.java
deleted file mode 100644
index 7f1d8f7..0000000
--- a/flink-python/src/main/java/org/apache/flink/table/runtime/runners/python/beam/BeamTableStatefulPythonFunctionRunner.java
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * 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.runners.python.beam;
-
-import org.apache.flink.api.common.typeutils.TypeSerializer;
-import org.apache.flink.fnexecution.v1.FlinkFnApi;
-import org.apache.flink.python.env.PythonEnvironmentManager;
-import org.apache.flink.python.metric.FlinkMetricContainer;
-import org.apache.flink.runtime.memory.MemoryManager;
-import org.apache.flink.runtime.state.KeyedStateBackend;
-import org.apache.flink.table.types.logical.RowType;
-
-import java.util.Map;
-
-/** A {@link BeamTableStatefulPythonFunctionRunner} used to execute Python stateful functions. */
-public class BeamTableStatefulPythonFunctionRunner extends BeamTablePythonFunctionRunner {
-
-    private final FlinkFnApi.UserDefinedAggregateFunctions userDefinedAggregateFunctions;
-
-    public BeamTableStatefulPythonFunctionRunner(
-            String taskName,
-            PythonEnvironmentManager environmentManager,
-            RowType inputType,
-            RowType outputType,
-            String functionUrn,
-            FlinkFnApi.UserDefinedAggregateFunctions userDefinedFunctions,
-            Map<String, String> jobOptions,
-            FlinkMetricContainer flinkMetricContainer,
-            KeyedStateBackend keyedStateBackend,
-            TypeSerializer keySerializer,
-            TypeSerializer namespaceSerializer,
-            MemoryManager memoryManager,
-            double managedMemoryFraction,
-            FlinkFnApi.CoderParam.DataType inputDataType,
-            FlinkFnApi.CoderParam.DataType outputDataType,
-            FlinkFnApi.CoderParam.OutputMode outputMode) {
-        super(
-                taskName,
-                environmentManager,
-                inputType,
-                outputType,
-                functionUrn,
-                jobOptions,
-                flinkMetricContainer,
-                keyedStateBackend,
-                keySerializer,
-                namespaceSerializer,
-                memoryManager,
-                managedMemoryFraction,
-                inputDataType,
-                outputDataType,
-                outputMode);
-        this.userDefinedAggregateFunctions = userDefinedFunctions;
-    }
-
-    @Override
-    protected byte[] getUserDefinedFunctionsProtoBytes() {
-        return this.userDefinedAggregateFunctions.toByteArray();
-    }
-}
diff --git a/flink-python/src/main/java/org/apache/flink/table/runtime/runners/python/beam/BeamTableStatelessPythonFunctionRunner.java b/flink-python/src/main/java/org/apache/flink/table/runtime/runners/python/beam/BeamTableStatelessPythonFunctionRunner.java
deleted file mode 100644
index 7f6b660..0000000
--- a/flink-python/src/main/java/org/apache/flink/table/runtime/runners/python/beam/BeamTableStatelessPythonFunctionRunner.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * 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.runners.python.beam;
-
-import org.apache.flink.annotation.Internal;
-import org.apache.flink.fnexecution.v1.FlinkFnApi;
-import org.apache.flink.python.env.PythonEnvironmentManager;
-import org.apache.flink.python.metric.FlinkMetricContainer;
-import org.apache.flink.runtime.memory.MemoryManager;
-import org.apache.flink.table.types.logical.RowType;
-
-import java.util.Map;
-
-/** A {@link BeamTableStatelessPythonFunctionRunner} used to execute Python stateless functions. */
-@Internal
-public class BeamTableStatelessPythonFunctionRunner extends BeamTablePythonFunctionRunner {
-
-    private final FlinkFnApi.UserDefinedFunctions userDefinedFunctions;
-
-    public BeamTableStatelessPythonFunctionRunner(
-            String taskName,
-            PythonEnvironmentManager environmentManager,
-            RowType inputType,
-            RowType outputType,
-            String functionUrn,
-            FlinkFnApi.UserDefinedFunctions userDefinedFunctions,
-            Map<String, String> jobOptions,
-            FlinkMetricContainer flinkMetricContainer,
-            MemoryManager memoryManager,
-            double managedMemoryFraction,
-            FlinkFnApi.CoderParam.DataType inputDataType,
-            FlinkFnApi.CoderParam.DataType outputDataType,
-            FlinkFnApi.CoderParam.OutputMode outputMode) {
-        super(
-                taskName,
-                environmentManager,
-                inputType,
-                outputType,
-                functionUrn,
-                jobOptions,
-                flinkMetricContainer,
-                null,
-                null,
-                null,
-                memoryManager,
-                managedMemoryFraction,
-                inputDataType,
-                outputDataType,
-                outputMode);
-        this.userDefinedFunctions = userDefinedFunctions;
-    }
-
-    @Override
-    protected byte[] getUserDefinedFunctionsProtoBytes() {
-        return this.userDefinedFunctions.toByteArray();
-    }
-}
diff --git a/flink-python/src/test/java/org/apache/flink/table/runtime/utils/PassThroughPythonAggregateFunctionRunner.java b/flink-python/src/test/java/org/apache/flink/table/runtime/utils/PassThroughPythonAggregateFunctionRunner.java
index f7ef576..76cb9ab 100644
--- a/flink-python/src/test/java/org/apache/flink/table/runtime/utils/PassThroughPythonAggregateFunctionRunner.java
+++ b/flink-python/src/test/java/org/apache/flink/table/runtime/utils/PassThroughPythonAggregateFunctionRunner.java
@@ -28,7 +28,7 @@ import org.apache.flink.python.env.PythonEnvironmentManager;
 import org.apache.flink.python.metric.FlinkMetricContainer;
 import org.apache.flink.table.data.RowData;
 import org.apache.flink.table.runtime.arrow.serializers.RowDataArrowSerializer;
-import org.apache.flink.table.runtime.runners.python.beam.BeamTableStatelessPythonFunctionRunner;
+import org.apache.flink.table.runtime.runners.python.beam.BeamTablePythonFunctionRunner;
 import org.apache.flink.table.types.logical.RowType;
 
 import org.apache.beam.runners.fnexecution.control.JobBundleFactory;
@@ -43,8 +43,7 @@ import java.util.Map;
  * A {@link PassThroughPythonAggregateFunctionRunner} runner that just return the first input
  * element with the same key as the execution results.
  */
-public class PassThroughPythonAggregateFunctionRunner
-        extends BeamTableStatelessPythonFunctionRunner {
+public class PassThroughPythonAggregateFunctionRunner extends BeamTablePythonFunctionRunner {
 
     private static final IntSerializer windowBoundarySerializer = IntSerializer.INSTANCE;
 
@@ -84,6 +83,9 @@ public class PassThroughPythonAggregateFunctionRunner
                 jobOptions,
                 flinkMetricContainer,
                 null,
+                null,
+                null,
+                null,
                 0.0,
                 FlinkFnApi.CoderParam.DataType.ARROW,
                 FlinkFnApi.CoderParam.DataType.ARROW,
diff --git a/flink-python/src/test/java/org/apache/flink/table/runtime/utils/PassThroughPythonScalarFunctionRunner.java b/flink-python/src/test/java/org/apache/flink/table/runtime/utils/PassThroughPythonScalarFunctionRunner.java
index e353402..04e5c57 100644
--- a/flink-python/src/test/java/org/apache/flink/table/runtime/utils/PassThroughPythonScalarFunctionRunner.java
+++ b/flink-python/src/test/java/org/apache/flink/table/runtime/utils/PassThroughPythonScalarFunctionRunner.java
@@ -21,7 +21,7 @@ package org.apache.flink.table.runtime.utils;
 import org.apache.flink.fnexecution.v1.FlinkFnApi;
 import org.apache.flink.python.env.PythonEnvironmentManager;
 import org.apache.flink.python.metric.FlinkMetricContainer;
-import org.apache.flink.table.runtime.runners.python.beam.BeamTableStatelessPythonFunctionRunner;
+import org.apache.flink.table.runtime.runners.python.beam.BeamTablePythonFunctionRunner;
 import org.apache.flink.table.types.logical.RowType;
 
 import org.apache.beam.runners.fnexecution.control.JobBundleFactory;
@@ -35,7 +35,7 @@ import java.util.Map;
  * A {@link PassThroughPythonScalarFunctionRunner} runner that just return the input elements as the
  * execution results.
  */
-public class PassThroughPythonScalarFunctionRunner extends BeamTableStatelessPythonFunctionRunner {
+public class PassThroughPythonScalarFunctionRunner extends BeamTablePythonFunctionRunner {
 
     private final List<byte[]> buffer;
 
@@ -58,6 +58,9 @@ public class PassThroughPythonScalarFunctionRunner extends BeamTableStatelessPyt
                 jobOptions,
                 flinkMetricContainer,
                 null,
+                null,
+                null,
+                null,
                 0.0,
                 FlinkFnApi.CoderParam.DataType.FLATTEN_ROW,
                 FlinkFnApi.CoderParam.DataType.FLATTEN_ROW,
diff --git a/flink-python/src/test/java/org/apache/flink/table/runtime/utils/PassThroughPythonTableFunctionRunner.java b/flink-python/src/test/java/org/apache/flink/table/runtime/utils/PassThroughPythonTableFunctionRunner.java
index 279d2de..b2165f7 100644
--- a/flink-python/src/test/java/org/apache/flink/table/runtime/utils/PassThroughPythonTableFunctionRunner.java
+++ b/flink-python/src/test/java/org/apache/flink/table/runtime/utils/PassThroughPythonTableFunctionRunner.java
@@ -21,7 +21,7 @@ package org.apache.flink.table.runtime.utils;
 import org.apache.flink.fnexecution.v1.FlinkFnApi;
 import org.apache.flink.python.env.PythonEnvironmentManager;
 import org.apache.flink.python.metric.FlinkMetricContainer;
-import org.apache.flink.table.runtime.runners.python.beam.BeamTableStatelessPythonFunctionRunner;
+import org.apache.flink.table.runtime.runners.python.beam.BeamTablePythonFunctionRunner;
 import org.apache.flink.table.types.logical.RowType;
 
 import org.apache.beam.runners.fnexecution.control.JobBundleFactory;
@@ -32,10 +32,10 @@ import java.util.List;
 import java.util.Map;
 
 /**
- * A {@link BeamTableStatelessPythonFunctionRunner} that emit each input element in inner join and
- * emit null in left join when certain test conditions are met.
+ * A {@link BeamTablePythonFunctionRunner} that emit each input element in inner join and emit null
+ * in left join when certain test conditions are met.
  */
-public class PassThroughPythonTableFunctionRunner extends BeamTableStatelessPythonFunctionRunner {
+public class PassThroughPythonTableFunctionRunner extends BeamTablePythonFunctionRunner {
 
     private int num = 0;
 
@@ -60,6 +60,9 @@ public class PassThroughPythonTableFunctionRunner extends BeamTableStatelessPyth
                 jobOptions,
                 flinkMetricContainer,
                 null,
+                null,
+                null,
+                null,
                 0.0,
                 FlinkFnApi.CoderParam.DataType.FLATTEN_ROW,
                 FlinkFnApi.CoderParam.DataType.FLATTEN_ROW,
diff --git a/flink-python/src/test/java/org/apache/flink/table/runtime/utils/PassThroughStreamAggregatePythonFunctionRunner.java b/flink-python/src/test/java/org/apache/flink/table/runtime/utils/PassThroughStreamAggregatePythonFunctionRunner.java
index 7a35a9f..4fe2f0c 100644
--- a/flink-python/src/test/java/org/apache/flink/table/runtime/utils/PassThroughStreamAggregatePythonFunctionRunner.java
+++ b/flink-python/src/test/java/org/apache/flink/table/runtime/utils/PassThroughStreamAggregatePythonFunctionRunner.java
@@ -23,7 +23,7 @@ import org.apache.flink.fnexecution.v1.FlinkFnApi;
 import org.apache.flink.python.env.PythonEnvironmentManager;
 import org.apache.flink.python.metric.FlinkMetricContainer;
 import org.apache.flink.runtime.state.KeyedStateBackend;
-import org.apache.flink.table.runtime.runners.python.beam.BeamTableStatefulPythonFunctionRunner;
+import org.apache.flink.table.runtime.runners.python.beam.BeamTablePythonFunctionRunner;
 import org.apache.flink.table.types.logical.RowType;
 
 import org.apache.beam.runners.fnexecution.control.JobBundleFactory;
@@ -39,8 +39,7 @@ import java.util.function.Function;
  * stream group aggregate operators. It will process the input data with the provided
  * `processFunction`.
  */
-public class PassThroughStreamAggregatePythonFunctionRunner
-        extends BeamTableStatefulPythonFunctionRunner {
+public class PassThroughStreamAggregatePythonFunctionRunner extends BeamTablePythonFunctionRunner {
 
     private final List<byte[]> buffer;
 
diff --git a/flink-python/src/test/java/org/apache/flink/table/runtime/utils/PassThroughStreamGroupWindowAggregatePythonFunctionRunner.java b/flink-python/src/test/java/org/apache/flink/table/runtime/utils/PassThroughStreamGroupWindowAggregatePythonFunctionRunner.java
index 8b1ed79..0126d4b 100644
--- a/flink-python/src/test/java/org/apache/flink/table/runtime/utils/PassThroughStreamGroupWindowAggregatePythonFunctionRunner.java
+++ b/flink-python/src/test/java/org/apache/flink/table/runtime/utils/PassThroughStreamGroupWindowAggregatePythonFunctionRunner.java
@@ -24,7 +24,7 @@ import org.apache.flink.python.env.PythonEnvironmentManager;
 import org.apache.flink.python.metric.FlinkMetricContainer;
 import org.apache.flink.runtime.state.KeyedStateBackend;
 import org.apache.flink.table.runtime.operators.python.aggregate.PassThroughPythonStreamGroupWindowAggregateOperator;
-import org.apache.flink.table.runtime.runners.python.beam.BeamTableStatefulPythonFunctionRunner;
+import org.apache.flink.table.runtime.runners.python.beam.BeamTablePythonFunctionRunner;
 import org.apache.flink.table.types.logical.RowType;
 
 import org.apache.beam.runners.fnexecution.control.JobBundleFactory;
@@ -37,7 +37,7 @@ import java.util.Map;
  * Python stream group window aggregate operators.
  */
 public class PassThroughStreamGroupWindowAggregatePythonFunctionRunner
-        extends BeamTableStatefulPythonFunctionRunner {
+        extends BeamTablePythonFunctionRunner {
 
     private final PassThroughPythonStreamGroupWindowAggregateOperator operator;
 
diff --git a/flink-python/src/test/java/org/apache/flink/table/runtime/utils/PassThroughStreamTableAggregatePythonFunctionRunner.java b/flink-python/src/test/java/org/apache/flink/table/runtime/utils/PassThroughStreamTableAggregatePythonFunctionRunner.java
index 7339e97..77934cb 100644
--- a/flink-python/src/test/java/org/apache/flink/table/runtime/utils/PassThroughStreamTableAggregatePythonFunctionRunner.java
+++ b/flink-python/src/test/java/org/apache/flink/table/runtime/utils/PassThroughStreamTableAggregatePythonFunctionRunner.java
@@ -23,7 +23,7 @@ import org.apache.flink.fnexecution.v1.FlinkFnApi;
 import org.apache.flink.python.env.PythonEnvironmentManager;
 import org.apache.flink.python.metric.FlinkMetricContainer;
 import org.apache.flink.runtime.state.KeyedStateBackend;
-import org.apache.flink.table.runtime.runners.python.beam.BeamTableStatefulPythonFunctionRunner;
+import org.apache.flink.table.runtime.runners.python.beam.BeamTablePythonFunctionRunner;
 import org.apache.flink.table.types.logical.RowType;
 
 import org.apache.beam.runners.fnexecution.control.JobBundleFactory;
@@ -41,7 +41,7 @@ import java.util.function.Function;
  * `processFunction`.
  */
 public class PassThroughStreamTableAggregatePythonFunctionRunner
-        extends BeamTableStatefulPythonFunctionRunner {
+        extends BeamTablePythonFunctionRunner {
 
     private final List<byte[]> buffer;