cpcloud commented on a change in pull request #1699:
URL: https://github.com/apache/arrow-datafusion/pull/1699#discussion_r795250108



##########
File path: datafusion/src/execution/dataframe_impl.rs
##########
@@ -62,6 +68,60 @@ impl DataFrameImpl {
     }
 }
 
+#[async_trait]
+impl TableProvider for DataFrameImpl {

Review comment:
       I don't think there's any way to achieve this behavior
   
   ```rust
           let df = test_table().await?.select_columns(&["c1", "c12"])?;
           let mut ctx = ExecutionContext::new();
   
           // register a dataframe as a table
           ctx.register_table("test_table", df)?;
   ```
   without `trait_upcasting` 😞, even with a blanket `impl` plus an additional 
trait bound. I'll put up a draft PR.




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to