We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d74972 commit 8e57909Copy full SHA for 8e57909
datafusion_iceberg/src/catalog/mirror.rs
@@ -183,13 +183,13 @@ impl Mirror {
183
pub fn table_exists(&self, identifier: Identifier) -> bool {
184
self.storage
185
.get(&identifier.to_string())
186
- .map_or(false, |node| matches!(node.value(), Node::Relation(_)))
+ .is_some_and(|node| matches!(node.value(), Node::Relation(_)))
187
}
188
189
pub fn schema_exists(&self, name: &str) -> bool {
190
191
.get(name)
192
- .map_or(false, |node| matches!(node.value(), Node::Namespace(_)))
+ .is_some_and(|node| matches!(node.value(), Node::Namespace(_)))
193
194
195
pub fn catalog(&self) -> Arc<dyn Catalog> {
0 commit comments