File tree Expand file tree Collapse file tree 7 files changed +12
-3
lines changed
integrations/datafusion/src Expand file tree Collapse file tree 7 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -1523,6 +1523,7 @@ message schema {
1523
1523
deletes: vec![ ] ,
1524
1524
sequence_number: 0 ,
1525
1525
equality_ids: vec![ ] ,
1526
+ file_size_in_bytes: 0 ,
1526
1527
} ) ]
1527
1528
. into_iter ( ) ,
1528
1529
) ) as FileScanTaskStream ;
Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ impl ManifestEntryContext {
143
143
deletes,
144
144
sequence_number : self . manifest_entry . sequence_number ( ) . unwrap_or ( 0 ) ,
145
145
equality_ids : self . manifest_entry . data_file ( ) . equality_ids ( ) . to_vec ( ) ,
146
+ file_size_in_bytes : self . manifest_entry . data_file ( ) . file_size_in_bytes ( ) ,
146
147
} )
147
148
}
148
149
}
Original file line number Diff line number Diff line change @@ -1795,6 +1795,7 @@ pub mod tests {
1795
1795
deletes : vec ! [ ] ,
1796
1796
sequence_number : 0 ,
1797
1797
equality_ids : vec ! [ ] ,
1798
+ file_size_in_bytes : 0 ,
1798
1799
} ;
1799
1800
test_fn ( task) ;
1800
1801
@@ -1812,6 +1813,7 @@ pub mod tests {
1812
1813
deletes : vec ! [ ] ,
1813
1814
sequence_number : 0 ,
1814
1815
equality_ids : vec ! [ ] ,
1816
+ file_size_in_bytes : 0 ,
1815
1817
} ;
1816
1818
test_fn ( task) ;
1817
1819
}
Original file line number Diff line number Diff line change @@ -63,6 +63,9 @@ pub struct FileScanTask {
63
63
pub sequence_number : i64 ,
64
64
/// equality ids
65
65
pub equality_ids : Vec < i32 > ,
66
+
67
+ /// The size of the file in bytes.
68
+ pub file_size_in_bytes : u64 ,
66
69
}
67
70
68
71
impl FileScanTask {
@@ -127,6 +130,7 @@ impl From<&DeleteFileContext> for FileScanTask {
127
130
deletes : vec ! [ ] ,
128
131
sequence_number : ctx. manifest_entry . sequence_number ( ) . unwrap_or ( 0 ) ,
129
132
equality_ids : ctx. manifest_entry . data_file ( ) . equality_ids ( ) . to_vec ( ) ,
133
+ file_size_in_bytes : ctx. manifest_entry . data_file ( ) . file_size_in_bytes ( ) ,
130
134
}
131
135
}
132
136
}
Original file line number Diff line number Diff line change @@ -39,7 +39,8 @@ const DEFAULT_DATA_DIR: &str = "/data";
39
39
/// `DefaultLocationGenerator` used to generate the data dir location of data file.
40
40
/// The location is generated based on the table location and the data location in table properties.
41
41
pub struct DefaultLocationGenerator {
42
- dir_path : String ,
42
+ /// The data dir path of the table.
43
+ pub dir_path : String ,
43
44
}
44
45
45
46
impl DefaultLocationGenerator {
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ pub use catalog::*;
21
21
mod error;
22
22
pub use error:: * ;
23
23
24
- mod physical_plan;
24
+ pub mod physical_plan;
25
25
mod schema;
26
26
mod table;
27
27
pub use table:: table_provider_factory:: IcebergTableProviderFactory ;
Original file line number Diff line number Diff line change 15
15
// specific language governing permissions and limitations
16
16
// under the License.
17
17
18
- pub ( crate ) mod expr_to_predicate;
18
+ pub mod expr_to_predicate;
19
19
pub ( crate ) mod scan;
You can’t perform that action at this time.
0 commit comments