aokolnychyi commented on code in PR #6345:
URL: https://github.com/apache/iceberg/pull/6345#discussion_r1037719947
##########
spark/v3.3/spark/src/main/java/org/apache/iceberg/spark/source/SparkInputPartition.java:
##########
@@ -66,6 +66,10 @@ public <T extends ScanTask> ScanTaskGroup<T> taskGroup() {
return (ScanTaskGroup<T>) taskGroup;
}
+ public <T extends ScanTask> boolean allTasksOfType(Class<T> javaClass) {
Review Comment:
The idea is to be able to check whether all tasks conform to a particular
known parent type. For instance, for changelog tasks we only check if all are
children of `ChangelogScanTask`. Then the reader itself may downcast it to a
particular child type (e.g. `ChangelogRowReader`).
We can't check the type of taskGroup due to Java type erasure.
--
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]