yuchuanchen commented on code in PR #21563:
URL: https://github.com/apache/flink/pull/21563#discussion_r1067621995


##########
flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/FileSystemTableSource.java:
##########
@@ -340,7 +342,17 @@ public void applyPartitions(List<Map<String, String>> 
remainingPartitions) {
 
     @Override
     public boolean supportsNestedProjection() {
-        return false;
+        return tableOptions.get(SOURCE_NESTED_PROJECTION_PUSHDOWN_ENABLED) && 
isNestedProjectable();
+    }
+
+    private boolean isNestedProjectable() {
+        return bulkReaderFormat != null
+                && bulkReaderFormat instanceof ProjectableDecodingFormat
+                && bulkReaderFormat

Review Comment:
   good idea. Updated.



-- 
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]

Reply via email to