Skip to content

Conversation

@jonahgao
Copy link
Member

@jonahgao jonahgao commented Nov 9, 2024

Which issue does this PR close?

Follow-up of #13242

Rationale for this change

Support the DEALLOCATE sql statement to remove prepared plans.
A typical usage is

> prepare p(int) as select $1;
0 row(s) fetched.
Elapsed 0.003 seconds.

> deallocate p;
0 row(s) fetched.
Elapsed 0.002 seconds.

What changes are included in this PR?

Are these changes tested?

Yes

Are there any user-facing changes?

No

@github-actions github-actions bot added sql SQL Planner logical-expr Logical plan and expressions core Core DataFusion crate sqllogictest SQL Logic Tests (.slt) labels Nov 9, 2024
Copy link
Contributor

@goldmedal goldmedal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @jonahgao. LGTM but one suggestion. 👍

@jonahgao
Copy link
Member Author

Thanks @jatin510 @goldmedal for the review

@jonahgao jonahgao merged commit a20b318 into apache:main Nov 10, 2024
25 checks passed
@jonahgao jonahgao deleted the deallocate branch November 10, 2024 14:04
jayzhan211 pushed a commit to jayzhan211/datafusion that referenced this pull request Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core DataFusion crate logical-expr Logical plan and expressions sql SQL Planner sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants