Skip to content

Commit

Permalink
chore: improve catalog test in mod.rs (apache#9244)
Browse files Browse the repository at this point in the history
  • Loading branch information
caicancai authored Feb 16, 2024
1 parent 40353fe commit e07a79c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datafusion/core/src/catalog/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ mod tests {
}
}

let schema = Arc::new(MemorySchemaProvider::new()) as _;
let schema = Arc::new(MemorySchemaProvider::new()) as Arc<dyn SchemaProvider>;
let catalog = Arc::new(TestProvider {});

match catalog.register_schema("foo", schema) {
Expand Down Expand Up @@ -353,7 +353,7 @@ mod tests {
let cat = Arc::new(MemoryCatalogProvider::new()) as Arc<dyn CatalogProvider>;

let schema = Arc::new(MemorySchemaProvider::new()) as Arc<dyn SchemaProvider>;
cat.register_schema("foo", schema.clone()).unwrap();
cat.register_schema("foo", schema).unwrap();

assert!(cat.deregister_schema("foo", false).unwrap().is_some());
}
Expand Down

0 comments on commit e07a79c

Please sign in to comment.