@@ -36,11 +36,11 @@ use crate::Result;
36
36
/// - <https://iceberg.apache.org/docs/latest/spark-queries/#querying-with-sql>
37
37
/// - <https://py.iceberg.apache.org/api/#inspecting-tables>
38
38
#[ derive( Debug ) ]
39
- pub struct MetadataTable ( Table ) ;
39
+ pub struct MetadataTable < ' a > ( & ' a Table ) ;
40
40
41
- impl MetadataTable {
41
+ impl < ' a > MetadataTable < ' a > {
42
42
/// Creates a new metadata scan.
43
- pub ( super ) fn new ( table : Table ) -> Self {
43
+ pub ( super ) fn new ( table : & ' a Table ) -> Self {
44
44
Self ( table)
45
45
}
46
46
@@ -65,7 +65,7 @@ impl MetadataTable {
65
65
66
66
/// Snapshots table.
67
67
pub struct SnapshotsTable < ' a > {
68
- metadata_table : & ' a MetadataTable ,
68
+ metadata_table : & ' a MetadataTable < ' a > ,
69
69
}
70
70
71
71
impl < ' a > SnapshotsTable < ' a > {
@@ -147,7 +147,7 @@ impl<'a> SnapshotsTable<'a> {
147
147
/// `is_current_ancestor` indicates whether the snapshot is an ancestor of the
148
148
/// current snapshot. If `false`, then the snapshot was rolled back.
149
149
pub struct HistoryTable < ' a > {
150
- metadata_table : & ' a MetadataTable ,
150
+ metadata_table : & ' a MetadataTable < ' a > ,
151
151
}
152
152
153
153
impl < ' a > HistoryTable < ' a > {
0 commit comments