alamb commented on issue #4889:
URL:
https://github.com/apache/arrow-datafusion/issues/4889#issuecomment-1383142935
I think this would be very straightforward to do in DataFusion
Note there is a function called `DataFrame::into_view()` (not yet released,
but should be soon) that allows you to use a dataframe as a table
So I wonder if you could do something like:
```rust
let df = ctx
.sql("select * from foo")
.filter(col("x").eq(lit(5)));
// register 'df_table' to read from this dataframe
ctx.register_table("df_table", df.into_view())?;
let sql_on_df = ctx.sql("select * from df_table")
```
--
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]