You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO: implement logic from ContentFileUtil.referencedDataFile
57
55
// see https://github.com/apache/iceberg/blob/cdf748e8e5537f13d861aa4c617a51f3e11dc97c/core/src/main/java/org/apache/iceberg/util/ContentFileUtil.java#L54
58
56
let referenced_data_file_path = "TODO".to_string();
59
57
60
-
positional_deletes_by_path
58
+
pos_deletes_by_path
61
59
.entry(referenced_data_file_path)
62
60
.and_modify(|entry| {
63
-
entry.push(arc_file.clone());
61
+
entry.push(arc_del_file_ctx.clone());
64
62
})
65
-
.or_insert(vec![arc_file.clone()]);
66
-
67
-
positional_deletes_by_partition
68
-
.entry(arc_file.partition_spec_id)
63
+
.or_insert(vec![arc_del_file_ctx.clone()]);
64
+
65
+
pos_deletes_by_partition
66
+
.entry(
67
+
arc_del_file_ctx
68
+
.manifest_entry
69
+
.data_file()
70
+
.partition()
71
+
.clone(),
72
+
)
69
73
.and_modify(|entry| {
70
-
entry.push(arc_file.clone());
74
+
entry.push(arc_del_file_ctx.clone());
71
75
})
72
-
.or_insert(vec![arc_file.clone()]);
76
+
.or_insert(vec![arc_del_file_ctx.clone()]);
73
77
}
74
78
DataContentType::EqualityDeletes => {
75
-
equality_deletes_by_partition
76
-
.entry(arc_file.partition_spec_id)
79
+
eq_deletes_by_partition
80
+
.entry(
81
+
arc_del_file_ctx
82
+
.manifest_entry
83
+
.data_file()
84
+
.partition()
85
+
.clone(),
86
+
)
77
87
.and_modify(|entry| {
78
-
entry.push(arc_file.clone());
88
+
entry.push(arc_del_file_ctx.clone());
79
89
})
80
-
.or_insert(vec![arc_file.clone()]);
90
+
.or_insert(vec![arc_del_file_ctx.clone()]);
81
91
}
82
92
_ => unreachable!(),
83
93
}
84
94
});
85
95
86
96
DeleteFileIndex{
87
97
global_deletes:vec![],
88
-
equality_deletes_by_partition,
89
-
positional_deletes_by_partition,
90
-
positional_deletes_by_path,
98
+
eq_deletes_by_partition,
99
+
pos_deletes_by_partition,
100
+
pos_deletes_by_path,
91
101
}
92
102
}
93
103
94
104
/// Determine all the delete files that apply to the provided `DataFile`.
0 commit comments