bryanck commented on code in PR #15059:
URL: https://github.com/apache/iceberg/pull/15059#discussion_r2705945354
##########
spark/v3.5/spark/src/main/java/org/apache/iceberg/spark/source/SparkMicroBatchStream.java:
##########
@@ -151,7 +150,17 @@ public InputPartition[] planInputPartitions(Offset start,
Offset end) {
StreamingOffset endOffset = (StreamingOffset) end;
StreamingOffset startOffset = (StreamingOffset) start;
- List<FileScanTask> fileScanTasks = planFiles(startOffset, endOffset);
+ // Initialize planner if not already done (for resume scenarios)
+ if (microBatchPlanner == null) {
+ initializePlanner(startOffset, endOffset);
+ }
+
+ List<FileScanTask> fileScanTasks;
+ try {
+ fileScanTasks = microBatchPlanner.planFiles(startOffset, endOffset);
+ } catch (ExecutionException e) {
Review Comment:
Move exception handling to implementation
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]