You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "JingsongLi (via GitHub)" <gi...@apache.org> on 2023/03/23 11:55:22 UTC

[GitHub] [incubator-paimon] JingsongLi commented on a diff in pull request #584: [FLINK-31338] support infer parallelism for flink table store

JingsongLi commented on code in PR #584:
URL: https://github.com/apache/incubator-paimon/pull/584#discussion_r1146071481


##########
paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/source/DataTableSource.java:
##########
@@ -191,22 +195,54 @@ public ScanRuntimeProvider getScanRuntimeProvider(ScanContext scanContext) {
             }
         }
 
+        List<Split> splits = null;
+        DataTableScan.DataFilePlan dataFilePlan = table.newScan().plan();
+        // TODO: we will refactor this after https://github.com/apache/incubator-paimon/issues/638
+        // finished.
+        if (null != dataFilePlan) {
+            splits = dataFilePlan.splits();

Review Comment:
   There is also a cost to generating splits at the compile stage, it causes the generated topology to become large if there are a lot of splits.
   Can we just generate splits when necessary and keep the original process without inference?



-- 
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: issues-unsubscribe@paimon.apache.org

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