Skip to content

Commit b44dec6

Browse files
author
Devdutt Shenoi
committed
refactor: coderabbit suggestion
1 parent 58b0db2 commit b44dec6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/storage/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
*
1717
*/
1818

19+
use arrow_schema::ArrowError;
1920
use object_store::path::Path;
2021
use relative_path::RelativePath;
2122
use 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

266270
pub fn to_object_store_path(path: &RelativePath) -> Path {

src/storage/object_storage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)