From 5e87e8ad163f850b7ccef95ab557100c38d4be83 Mon Sep 17 00:00:00 2001 From: XuShuai Date: Wed, 15 Jan 2025 11:54:52 +0800 Subject: [PATCH] [FLINK-36499][table-common] Remove deprecated method `SupportsProjectionPushDown#applyProjection` (#25967) Co-authored-by: RanJinh --- .../abilities/SupportsProjectionPushDown.java | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/flink-table/flink-table-common/src/main/java/org/apache/flink/table/connector/source/abilities/SupportsProjectionPushDown.java b/flink-table/flink-table-common/src/main/java/org/apache/flink/table/connector/source/abilities/SupportsProjectionPushDown.java index 9a0ed5ef3abb7..b12a412926710 100644 --- a/flink-table/flink-table-common/src/main/java/org/apache/flink/table/connector/source/abilities/SupportsProjectionPushDown.java +++ b/flink-table/flink-table-common/src/main/java/org/apache/flink/table/connector/source/abilities/SupportsProjectionPushDown.java @@ -57,16 +57,6 @@ public interface SupportsProjectionPushDown { /** Returns whether this source supports nested projection. */ boolean supportsNestedProjection(); - /** - * @deprecated Please implement {@link #applyProjection(int[][], DataType)} - */ - @Deprecated - default void applyProjection(int[][] projectedFields) { - throw new UnsupportedOperationException( - "No implementation provided for SupportsProjectionPushDown. " - + "Please implement SupportsProjectionPushDown#applyProjection(int[][], DataType)"); - } - /** * Provides the field index paths that should be used for a projection. The indices are 0-based * and support fields within (possibly nested) structures if this is enabled via {@link @@ -88,7 +78,5 @@ default void applyProjection(int[][] projectedFields) { * produced data * @param producedDataType the final output type of the source, with the projection applied */ - default void applyProjection(int[][] projectedFields, DataType producedDataType) { - applyProjection(projectedFields); - } + void applyProjection(int[][] projectedFields, DataType producedDataType); }