File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
xtable-api/src/main/java/org/apache/xtable/model/storage
main/java/org/apache/xtable/delta
test/java/org/apache/xtable Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 3636@ Getter
3737@ ToString (callSuper = true )
3838@ EqualsAndHashCode (callSuper = true )
39- public class InternalDeletionVector extends InternalDataFile {
39+ public class InternalDeletionVector extends InternalFile {
4040 // path (absolute with scheme) of data file to which this deletion vector belongs
4141 @ NonNull String dataFilePath ;
4242
Original file line number Diff line number Diff line change 4040import org .apache .spark .sql .delta .actions .AddFile ;
4141import org .apache .spark .sql .delta .actions .RemoveFile ;
4242
43+ import org .apache .xtable .model .storage .InternalFile ;
4344import scala .Option ;
4445
4546import io .delta .tables .DeltaTable ;
@@ -164,7 +165,7 @@ public TableChange getTableChangeForCommit(Long versionNumber) {
164165 }
165166 }
166167
167- List <InternalDataFile > allAddedFiles =
168+ List <InternalFile > allAddedFiles =
168169 Stream .concat (addedFiles .values ().stream (), deletionVectors .values ().stream ())
169170 .collect (Collectors .toList ());
170171 InternalFilesDiff internalFilesDiff =
Original file line number Diff line number Diff line change 3131import org .apache .xtable .model .TableChange ;
3232import org .apache .xtable .model .storage .InternalDataFile ;
3333import org .apache .xtable .model .storage .InternalDeletionVector ;
34+ import org .apache .xtable .model .storage .InternalFile ;
3435
3536public class ValidationTestHelper {
3637
@@ -98,8 +99,7 @@ public static List<String> getAllFilePaths(InternalSnapshot internalSnapshot) {
9899
99100 private static Set <String > extractPathsFromDataFile (Set <InternalDataFile > dataFiles ) {
100101 return dataFiles .stream ()
101- .filter (file -> !(file instanceof InternalDeletionVector ))
102- .map (InternalDataFile ::getPhysicalPath )
102+ .map (InternalFile ::getPhysicalPath )
103103 .collect (Collectors .toSet ());
104104 }
105105
You can’t perform that action at this time.
0 commit comments