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 16
16
*
17
17
*/
18
18
19
+ use arrow_schema:: ArrowError ;
19
20
use object_store:: path:: Path ;
20
21
use relative_path:: RelativePath ;
21
22
use serde:: { Deserialize , Serialize } ;
@@ -261,6 +262,9 @@ pub enum ObjectStorageError {
261
262
262
263
#[ error( "JoinError: {0}" ) ]
263
264
JoinError ( #[ from] JoinError ) ,
265
+
266
+ #[ error( "ArrowError: {0}" ) ]
267
+ Arrow ( #[ from] ArrowError ) ,
264
268
}
265
269
266
270
pub 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 {
877
877
schema : Schema ,
878
878
) -> Result < ( ) , ObjectStorageError > {
879
879
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] ) ? ;
881
881
self . put_schema ( stream_name, & new_schema) . await
882
882
}
883
883
You can’t perform that action at this time.
0 commit comments