File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -262,6 +262,9 @@ pub enum ObjectStorageError {
262
262
263
263
#[ error( "JoinError: {0}" ) ]
264
264
JoinError ( #[ from] JoinError ) ,
265
+
266
+ #[ error( "Arrow Error: {0}" ) ]
267
+ Arrow ( #[ from] arrow_schema:: ArrowError ) ,
265
268
}
266
269
267
270
pub fn to_object_store_path ( path : & RelativePath ) -> Path {
Original file line number Diff line number Diff line change @@ -879,13 +879,14 @@ pub trait ObjectStorage: Debug + Send + Sync + 'static {
879
879
Ok ( ( ) )
880
880
}
881
881
882
+ /// Stores updated schema in storage
882
883
async fn commit_schema (
883
884
& self ,
884
885
stream_name : & str ,
885
886
schema : Schema ,
886
887
) -> Result < ( ) , ObjectStorageError > {
887
888
let stream_schema = self . get_schema ( stream_name) . await ?;
888
- let new_schema = Schema :: try_merge ( vec ! [ schema, stream_schema] ) . unwrap ( ) ;
889
+ let new_schema = Schema :: try_merge ( vec ! [ schema, stream_schema] ) ? ;
889
890
self . put_schema ( stream_name, & new_schema) . await
890
891
}
891
892
}
You can’t perform that action at this time.
0 commit comments