File tree 1 file changed +3
-12
lines changed
crates/core/src/data_catalog/storage
1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -105,17 +105,6 @@ impl ListingSchemaProvider {
105
105
let mut delta_table = delta_table. clone ( ) ;
106
106
delta_table. load ( ) . await ?;
107
107
* table = Arc :: from ( delta_table) ;
108
- //match delta_table.load().await {
109
- // Ok(()) => {
110
- // // Add the table back to the DashMap
111
- // }
112
- // Err(err) => {
113
- // return Err(DataFusionError::Internal(format!(
114
- // "Cannot load delta table. See stacktrace: {}",
115
- // err.to_string()
116
- // )))
117
- // }
118
- //}
119
108
}
120
109
}
121
110
}
@@ -159,7 +148,9 @@ impl SchemaProvider for ListingSchemaProvider {
159
148
name : String ,
160
149
table : Arc < dyn TableProvider > ,
161
150
) -> datafusion_common:: Result < Option < Arc < dyn TableProvider > > > {
162
- self . tables . insert ( name, table. clone ( ) ) ;
151
+ if !self . table_exist ( name. as_str ( ) ) {
152
+ self . tables . insert ( name, table. clone ( ) ) ;
153
+ }
163
154
Ok ( Some ( table) )
164
155
}
165
156
You can’t perform that action at this time.
0 commit comments