rahil-c commented on code in PR #11180:
URL: https://github.com/apache/iceberg/pull/11180#discussion_r1821364081


##########
core/src/main/java/org/apache/iceberg/ScanTasksIterable.java:
##########
@@ -120,7 +146,21 @@ private void fetchScanTasks(String planTask) {
               headers,
               ErrorHandlers.defaultErrorHandler());
       fileScanTasks.addAll(response.fileScanTasks());
-      planTasks.addAll(response.planTasks());
+      // TODO need to confirm recursive call here
+      if (response.planTasks() != null) {
+        getScanTasksIterable(response.planTasks());

Review Comment:
   Thanks for catching this, will fix this and adding a test to exercise this 
code path



-- 
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-unsubscr...@iceberg.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to