chenjunjiedada commented on a change in pull request #2372:
URL: https://github.com/apache/iceberg/pull/2372#discussion_r601025876
##########
File path:
spark/src/main/java/org/apache/iceberg/spark/source/DeleteRowReader.java
##########
@@ -31,13 +32,16 @@
import org.apache.spark.rdd.InputFileBlockHolder;
import org.apache.spark.sql.catalyst.InternalRow;
-public class EqualityDeleteRowReader extends RowDataReader {
+public class DeleteRowReader extends RowDataReader {
private final Schema expectedSchema;
+ private final FileContent deleteContent;
- public EqualityDeleteRowReader(CombinedScanTask task, Schema schema, Schema
expectedSchema, String nameMapping,
- FileIO io, EncryptionManager
encryptionManager, boolean caseSensitive) {
+ public DeleteRowReader(CombinedScanTask task, Schema schema, Schema
expectedSchema, String nameMapping,
+ FileIO io, EncryptionManager encryptionManager,
boolean caseSensitive,
+ FileContent deleteContent) {
Review comment:
Yes, there is no guarantee about what kind of deletes a
`CombinedScanTask` contains. Here I'd like to expose the option to the user to
select one kind of delete to rewrite. How about returns all deleted rows when
`deleteContent` is not passed? That should be a valid option I think.
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]