Commit 8a3de4e 1 parent e08c0e5 commit 8a3de4e Copy full SHA for 8a3de4e
File tree 6 files changed +631
-117
lines changed
6 files changed +631
-117
lines changed Original file line number Diff line number Diff line change @@ -293,12 +293,8 @@ async fn test_create_table() {
293
293
assert_eq ! ( table. metadata( ) . format_version( ) , FormatVersion :: V2 ) ;
294
294
assert ! ( table. metadata( ) . current_snapshot( ) . is_none( ) ) ;
295
295
assert ! ( table. metadata( ) . history( ) . is_empty( ) ) ;
296
- assert ! ( table. metadata( ) . default_sort_order( ) . unwrap( ) . is_unsorted( ) ) ;
297
- assert ! ( table
298
- . metadata( )
299
- . default_partition_spec( )
300
- . unwrap( )
301
- . is_unpartitioned( ) ) ;
296
+ assert ! ( table. metadata( ) . default_sort_order( ) . is_unsorted( ) ) ;
297
+ assert ! ( table. metadata( ) . default_partition_spec( ) . is_unpartitioned( ) ) ;
302
298
}
303
299
304
300
#[ tokio:: test]
Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ mod tests {
252
252
async fn setup_manifest_files ( & mut self ) {
253
253
let current_snapshot = self . table . metadata ( ) . current_snapshot ( ) . unwrap ( ) ;
254
254
let current_schema = current_snapshot. schema ( self . table . metadata ( ) ) . unwrap ( ) ;
255
- let current_partition_spec = self . table . metadata ( ) . default_partition_spec ( ) . unwrap ( ) ;
255
+ let current_partition_spec = self . table . metadata ( ) . default_partition_spec ( ) ;
256
256
257
257
// Write data files
258
258
let data_file_manifest = ManifestWriter :: new (
Original file line number Diff line number Diff line change @@ -979,7 +979,7 @@ mod tests {
979
979
. parent_snapshot ( self . table . metadata ( ) )
980
980
. unwrap ( ) ;
981
981
let current_schema = current_snapshot. schema ( self . table . metadata ( ) ) . unwrap ( ) ;
982
- let current_partition_spec = self . table . metadata ( ) . default_partition_spec ( ) . unwrap ( ) ;
982
+ let current_partition_spec = self . table . metadata ( ) . default_partition_spec ( ) ;
983
983
984
984
// Write data files
985
985
let data_file_manifest = ManifestWriter :: new (
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ pub struct SortOrder {
112
112
}
113
113
114
114
impl SortOrder {
115
- const UNSORTED_ORDER_ID : i64 = 0 ;
115
+ pub ( crate ) const UNSORTED_ORDER_ID : i64 = 0 ;
116
116
117
117
/// Create sort order builder
118
118
pub fn builder ( ) -> SortOrderBuilder {
You can’t perform that action at this time.
0 commit comments