tv42 commented on issue #8805:
URL:
https://github.com/apache/arrow-datafusion/issues/8805#issuecomment-1883713037
Ignoring datafusion-specific SQL syntax, this actually works and is darn
simple:
```rust
let statement: datafusion::sql::sqlparser::Statement = ...;
let df_statement =
datafusion::sql::parser::Statement::Statement(Box::new(statement));
let logical_plan = session_context
.state()
.statement_to_plan(df_statement)
.await?;
```
--
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]