flyrain commented on code in PR #5248:
URL: https://github.com/apache/iceberg/pull/5248#discussion_r925937255


##########
spark/v3.3/spark/src/main/java/org/apache/iceberg/spark/source/BaseDataReader.java:
##########
@@ -60,35 +64,54 @@
  *
  * @param <T> is the Java class returned by this reader whose objects contain 
one or more rows.
  */
-abstract class BaseDataReader<T> implements Closeable {
+abstract class BaseDataReader<T, CST extends ContentScanTask<?>, G extends 
ScanTaskGroup<CST>>

Review Comment:
   I agree that the second type parameter isn't needed. Thanks for the 
suggestion.
   
   If we want to use `ScanTask` in the `BaseReader/BaseDataReader`, we need to 
either 
   1. move some common logic to its subclasses, e.g. `getInputFile()`, 
`constantsMap()` , which need the method from `ContentScanTask`.
   2. add new methods in `ScanTask`. e.g.  `file()`



-- 
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]

Reply via email to