This is an automated email from the ASF dual-hosted git repository.

alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git


The following commit(s) were added to refs/heads/main by this push:
     new bb1d7f9343 Improve MemoryCatalogProvider default impl block placement 
(#7975)
bb1d7f9343 is described below

commit bb1d7f9343532d5fa8df871ff42000fbe836d7d7
Author: 张林伟 <[email protected]>
AuthorDate: Tue Oct 31 01:40:34 2023 +0800

    Improve MemoryCatalogProvider default impl block placement (#7975)
---
 datafusion/core/src/catalog/mod.rs | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/datafusion/core/src/catalog/mod.rs 
b/datafusion/core/src/catalog/mod.rs
index fe5bdc0ec6..ce27d57da0 100644
--- a/datafusion/core/src/catalog/mod.rs
+++ b/datafusion/core/src/catalog/mod.rs
@@ -93,12 +93,6 @@ impl CatalogList for MemoryCatalogList {
     }
 }
 
-impl Default for MemoryCatalogProvider {
-    fn default() -> Self {
-        Self::new()
-    }
-}
-
 /// Represents a catalog, comprising a number of named schemas.
 pub trait CatalogProvider: Sync + Send {
     /// Returns the catalog provider as [`Any`]
@@ -161,6 +155,12 @@ impl MemoryCatalogProvider {
     }
 }
 
+impl Default for MemoryCatalogProvider {
+    fn default() -> Self {
+        Self::new()
+    }
+}
+
 impl CatalogProvider for MemoryCatalogProvider {
     fn as_any(&self) -> &dyn Any {
         self

Reply via email to