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 {
15231523 deletes: vec![ ] ,
15241524 sequence_number: 0 ,
15251525 equality_ids: vec![ ] ,
1526+ file_size_in_bytes: 0 ,
15261527 } ) ]
15271528 . into_iter ( ) ,
15281529 ) ) as FileScanTaskStream ;
Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ impl ManifestEntryContext {
143143 deletes,
144144 sequence_number : self . manifest_entry . sequence_number ( ) . unwrap_or ( 0 ) ,
145145 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 ( ) ,
146147 } )
147148 }
148149}
Original file line number Diff line number Diff line change @@ -1795,6 +1795,7 @@ pub mod tests {
17951795 deletes : vec ! [ ] ,
17961796 sequence_number : 0 ,
17971797 equality_ids : vec ! [ ] ,
1798+ file_size_in_bytes : 0 ,
17981799 } ;
17991800 test_fn ( task) ;
18001801
@@ -1812,6 +1813,7 @@ pub mod tests {
18121813 deletes : vec ! [ ] ,
18131814 sequence_number : 0 ,
18141815 equality_ids : vec ! [ ] ,
1816+ file_size_in_bytes : 0 ,
18151817 } ;
18161818 test_fn ( task) ;
18171819 }
Original file line number Diff line number Diff line change @@ -63,6 +63,9 @@ pub struct FileScanTask {
6363 pub sequence_number : i64 ,
6464 /// equality ids
6565 pub equality_ids : Vec < i32 > ,
66+
67+ /// The size of the file in bytes.
68+ pub file_size_in_bytes : u64 ,
6669}
6770
6871impl FileScanTask {
@@ -127,6 +130,7 @@ impl From<&DeleteFileContext> for FileScanTask {
127130 deletes : vec ! [ ] ,
128131 sequence_number : ctx. manifest_entry . sequence_number ( ) . unwrap_or ( 0 ) ,
129132 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 ( ) ,
130134 }
131135 }
132136}
Original file line number Diff line number Diff line change @@ -39,7 +39,8 @@ const DEFAULT_DATA_DIR: &str = "/data";
3939/// `DefaultLocationGenerator` used to generate the data dir location of data file.
4040/// The location is generated based on the table location and the data location in table properties.
4141pub struct DefaultLocationGenerator {
42- dir_path : String ,
42+ /// The data dir path of the table.
43+ pub dir_path : String ,
4344}
4445
4546impl DefaultLocationGenerator {
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ pub use catalog::*;
2121mod error;
2222pub use error:: * ;
2323
24- mod physical_plan;
24+ pub mod physical_plan;
2525mod schema;
2626mod table;
2727pub use table:: table_provider_factory:: IcebergTableProviderFactory ;
Original file line number Diff line number Diff line change 1515// specific language governing permissions and limitations
1616// under the License.
1717
18- pub ( crate ) mod expr_to_predicate;
18+ pub mod expr_to_predicate;
1919pub ( crate ) mod scan;
You can’t perform that action at this time.
0 commit comments