Nandor Kollar has posted comments on this change. ( http://gerrit.cloudera.org:8080/24614 )
Change subject: IMPALA-12587: Respect MAX_FS_WRITERS for Iceberg DELETE/UPDATE/MERGE ...................................................................... Patch Set 22: (1 comment) http://gerrit.cloudera.org:8080/#/c/24614/20/fe/src/main/java/org/apache/impala/planner/IcebergBufferedDeleteSink.java File fe/src/main/java/org/apache/impala/planner/IcebergBufferedDeleteSink.java: http://gerrit.cloudera.org:8080/#/c/24614/20/fe/src/main/java/org/apache/impala/planner/IcebergBufferedDeleteSink.java@66 PS20, Line 66: @Override : public int getNumNodes() { : int numNodes = getFragment().getPlanRoot().getNumNodes(); : if (maxTableSinks_ > 0) { : // If there are more nodes than instances where the fragment was initially : // planned to run then, then the instances will be distributed evenly across them. : numNodes = Math.min(numNodes, getNumInstances()); : } : return numNodes; : } : : @Override : public int getNumInstances() { : int numInstances = getFragment().getPlanRoot().getNumInstances(); : if (maxTableSinks_ > 0) { : numInstances = Math.min(numInstances, maxTableSinks_); : } : return numInstances; : } > getNumNodes()/getNumInstances() is the same logic as in HdfsTableSink (line We can put all of these methods and dependent state variables (maxTableSinks_) though I'm a bit hesitant that it worth the effort to introduce a new class just for this purpose -- To view, visit http://gerrit.cloudera.org:8080/24614 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Ice7362cecb8b43fbff43b8ad82827e31e2b4eea3 Gerrit-Change-Number: 24614 Gerrit-PatchSet: 22 Gerrit-Owner: Nandor Kollar <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Nandor Kollar <[email protected]> Gerrit-Reviewer: Noemi Pap-Takacs <[email protected]> Gerrit-Reviewer: Peter Rozsa <[email protected]> Gerrit-Comment-Date: Mon, 19 Oct 2026 14:45:07 +0000 Gerrit-HasComments: Yes
