tustvold commented on code in PR #4607:
URL: https://github.com/apache/arrow-datafusion/pull/4607#discussion_r1060989938
##########
datafusion/core/src/execution/context.rs:
##########
@@ -1643,6 +1621,72 @@ impl SessionState {
self
}
+ /// Creates a [`LogicalPlan`] from the provided SQL string
+ ///
+ /// See [`SessionContext::sql`] for a higher-level interface that also
handles DDL
+ pub async fn create_logical_plan(&self, sql: &str) -> Result<LogicalPlan> {
Review Comment:
This is specifically broken out into a separate function so that database's
that want to not handle DDL, such as IOx, don't have to re-implement this
functionality. FYI @alamb
--
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]