slinkydeveloper commented on pull request #17662:
URL: https://github.com/apache/flink/pull/17662#issuecomment-960531015
@Airblader I can try, but it requires to default implement both methods, eg:
```
Index:
flink-table/flink-table-common/src/main/java/org/apache/flink/table/connector/source/abilities/SupportsProjectionPushDown.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
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
---
a/flink-table/flink-table-common/src/main/java/org/apache/flink/table/connector/source/abilities/SupportsProjectionPushDown.java
(revision 5379526a2cdfe6087625e1bfcba913c818f3c732)
+++
b/flink-table/flink-table-common/src/main/java/org/apache/flink/table/connector/source/abilities/SupportsProjectionPushDown.java
(date 1636012762215)
@@ -52,6 +52,10 @@
/** Returns whether this source supports nested projection. */
boolean supportsNestedProjection();
+ /** @deprecated You should implement {@link #applyProjection(int[][],
DataType)} */
+ @Deprecated
+ default void applyProjection(int[][] projectedFields) {}
+
/**
* 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
@@ -73,5 +77,7 @@
* produced data
* @param producedDataType the final output type of the source, with
the projection applied
*/
- void applyProjection(int[][] projectedFields, DataType
producedDataType);
+ default void applyProjection(int[][] projectedFields, DataType
producedDataType) {
+ applyProjection(projectedFields);
+ }
}
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]