wuchong commented on a change in pull request #12221:
URL: https://github.com/apache/flink/pull/12221#discussion_r427009783



##########
File path: 
flink-connectors/flink-connector-jdbc/src/main/java/org/apache/flink/connector/jdbc/table/JdbcDynamicTableSource.java
##########
@@ -126,9 +128,20 @@ public ChangelogMode getChangelogMode() {
                return ChangelogMode.insertOnly();
        }
 
+       @Override
+       public boolean supportsNestedProjection() {
+               // JDBC doesn't support nested projection
+               return false;
+       }
+
+       @Override
+       public void applyProjection(int[][] projectedFields) {
+               this.physicalSchema = 
TableSchemaUtils.projectSchema(physicalSchema, projectedFields);

Review comment:
       Removed `selectFields` because we don't need it. The `physicalSchema` is 
the selected schema. 




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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to