alamb commented on code in PR #7138:
URL: https://github.com/apache/arrow-datafusion/pull/7138#discussion_r1279862084
##########
datafusion-cli/src/exec.rs:
##########
@@ -192,17 +193,20 @@ async fn exec_and_print(
let now = Instant::now();
let sql = unescape_input(&sql)?;
- let plan = ctx.state().create_logical_plan(&sql).await?;
- let df = match &plan {
- LogicalPlan::Ddl(DdlStatement::CreateExternalTable(cmd)) => {
- create_external_table(ctx, cmd).await?;
- ctx.execute_logical_plan(plan).await?
- }
- _ => ctx.execute_logical_plan(plan).await?,
- };
+ let statements = DFParser::parse_sql(&sql)?;
Review Comment:
I am not sure what you mean by the current context -- which one are you
thinking of?
--
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]