jonahgao opened a new pull request, #13242:
URL: https://github.com/apache/datafusion/pull/13242

   ## Which issue does this PR close?
   
   <!--
   We generally require a GitHub issue to be filed for all bug fixes and 
enhancements and this helps us generate change logs for our releases. You can 
link an issue to this PR using the GitHub syntax. For example `Closes #123` 
indicates that this PR will close issue #123.
   -->
   
   Closes #4549.
   
   ## Rationale for this change
   Store the logical plan of the prepared statement in the session state. 
During `EXECUTE`, retrieve the prepared logical plan, replace the placeholders 
with execution parameters, and then execute.
   
   ## What changes are included in this PR?
   Support executing prepared statements.
   
   
   ## Are these changes tested?
   Yes
   
   
   ## Are there any user-facing changes?
   Yes. 
   
   `ctx.sql("Prepare p(int) as query")` now returns an empty DataFrame, similar 
to Create View and other DDL statements. Previously, it would return a 
DataFrame containing the Prepare logical plan.
   
   


-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to