File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
datafusion_iceberg/src/catalog Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ impl IcebergCatalog {
18
18
catalog : Arc :: new ( Mirror :: new ( catalog, branch. map ( ToOwned :: to_owned) ) . await ?) ,
19
19
} )
20
20
}
21
+
22
+ pub fn catalog ( & self ) -> & dyn Catalog {
23
+ self . catalog . catalog ( )
24
+ }
21
25
}
22
26
23
27
impl CatalogProvider for IcebergCatalog {
Original file line number Diff line number Diff line change 1
1
use dashmap:: DashMap ;
2
2
use datafusion:: { datasource:: TableProvider , error:: DataFusionError } ;
3
3
use futures:: { executor:: LocalPool , task:: LocalSpawnExt } ;
4
+ use std:: ops:: Deref ;
4
5
use std:: { collections:: HashSet , sync:: Arc } ;
5
6
6
7
use iceberg_rust:: spec:: { tabular:: TabularMetadata , view_metadata:: REF_PREFIX } ;
@@ -304,4 +305,8 @@ impl Mirror {
304
305
// Currently can't synchronously return a table which has to be fetched asynchronously
305
306
Ok ( None )
306
307
}
308
+
309
+ pub fn catalog ( & self ) -> & dyn Catalog {
310
+ self . catalog . deref ( )
311
+ }
307
312
}
You can’t perform that action at this time.
0 commit comments