File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1616 *
1717 */
1818
19+ use arrow_schema:: ArrowError ;
1920use object_store:: path:: Path ;
2021use relative_path:: RelativePath ;
2122use serde:: { Deserialize , Serialize } ;
@@ -261,6 +262,9 @@ pub enum ObjectStorageError {
261262
262263 #[ error( "JoinError: {0}" ) ]
263264 JoinError ( #[ from] JoinError ) ,
265+
266+ #[ error( "ArrowError: {0}" ) ]
267+ Arrow ( #[ from] ArrowError ) ,
264268}
265269
266270pub fn to_object_store_path ( path : & RelativePath ) -> Path {
Original file line number Diff line number Diff line change @@ -877,7 +877,7 @@ pub trait ObjectStorage: Debug + Send + Sync + 'static {
877877 schema : Schema ,
878878 ) -> Result < ( ) , ObjectStorageError > {
879879 let stream_schema = self . get_schema ( stream_name) . await ?;
880- let new_schema = Schema :: try_merge ( vec ! [ schema, stream_schema] ) . unwrap ( ) ;
880+ let new_schema = Schema :: try_merge ( vec ! [ schema, stream_schema] ) ? ;
881881 self . put_schema ( stream_name, & new_schema) . await
882882 }
883883
You can’t perform that action at this time.
0 commit comments