@@ -7,8 +7,8 @@ use std::sync::Arc;
77use async_trait:: async_trait;
88use dashmap:: DashMap ;
99use datafusion:: catalog:: SchemaProvider ;
10+ use datafusion:: common:: DataFusionError ;
1011use datafusion:: datasource:: TableProvider ;
11- use datafusion_common:: DataFusionError ;
1212use futures:: TryStreamExt ;
1313use object_store:: ObjectStore ;
1414
@@ -59,7 +59,7 @@ impl ListingSchemaProvider {
5959 }
6060
6161 /// Reload table information from ObjectStore
62- pub async fn refresh ( & self ) -> datafusion_common :: Result < ( ) > {
62+ pub async fn refresh ( & self ) -> datafusion :: common :: Result < ( ) > {
6363 let entries: Vec < _ > = self . store . list ( None ) . try_collect ( ) . await ?;
6464 let mut tables = HashSet :: new ( ) ;
6565 for file in entries. iter ( ) {
@@ -110,7 +110,10 @@ impl SchemaProvider for ListingSchemaProvider {
110110 self . tables . iter ( ) . map ( |t| t. key ( ) . clone ( ) ) . collect ( )
111111 }
112112
113- async fn table ( & self , name : & str ) -> datafusion_common:: Result < Option < Arc < dyn TableProvider > > > {
113+ async fn table (
114+ & self ,
115+ name : & str ,
116+ ) -> datafusion:: common:: Result < Option < Arc < dyn TableProvider > > > {
114117 let Some ( location) = self . tables . get ( name) . map ( |t| t. clone ( ) ) else {
115118 return Ok ( None ) ;
116119 } ;
@@ -123,7 +126,7 @@ impl SchemaProvider for ListingSchemaProvider {
123126 & self ,
124127 _name : String ,
125128 _table : Arc < dyn TableProvider > ,
126- ) -> datafusion_common :: Result < Option < Arc < dyn TableProvider > > > {
129+ ) -> datafusion :: common :: Result < Option < Arc < dyn TableProvider > > > {
127130 Err ( DataFusionError :: Execution (
128131 "schema provider does not support registering tables" . to_owned ( ) ,
129132 ) )
@@ -132,7 +135,7 @@ impl SchemaProvider for ListingSchemaProvider {
132135 fn deregister_table (
133136 & self ,
134137 _name : & str ,
135- ) -> datafusion_common :: Result < Option < Arc < dyn TableProvider > > > {
138+ ) -> datafusion :: common :: Result < Option < Arc < dyn TableProvider > > > {
136139 Err ( DataFusionError :: Execution (
137140 "schema provider does not support deregistering tables" . to_owned ( ) ,
138141 ) )
0 commit comments