phillipleblanc commented on code in PR #1600:
URL: https://github.com/apache/iceberg-rust/pull/1600#discussion_r2280656152


##########
crates/integrations/datafusion/src/table/mod.rs:
##########
@@ -140,8 +152,15 @@ impl TableProvider for IcebergTableProvider {
         filters: &[Expr],
         _limit: Option<usize>,
     ) -> DFResult<Arc<dyn ExecutionPlan>> {
+        // Refresh table if catalog is available
+        let table = if let Some(catalog) = &self.catalog {
+            
catalog.load_table(self.table.identifier()).await.map_err(to_datafusion_error)?
+        } else {
+            self.table.clone()
+        };
+

Review Comment:
   I have a PR to add that functionality (including the refresh): 
https://github.com/apache/iceberg-rust/pull/1297



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to