apache / datafusion-ballista

Apache DataFusion Ballista Distributed Query Engine
https://datafusion.apache.org/ballista
Apache License 2.0
1.49k stars 190 forks source link

Reduce the number of calls to `create_logical_plan` #842

Closed jonahgao closed 1 year ago

jonahgao commented 1 year ago

Which issue does this PR close?

None

Rationale for this change

There is a duplicate invocation of create_logical_plan within ctx.sql(sql). Since we already have a logical plan at hand, perhaps we can execute it directly.

What changes are included in this PR?

Are there any user-facing changes?

No

yahoNanJing commented 1 year ago

Good catch. Thanks @jonahgao.