-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor: add flags for temporary ddl #12561
Minor: add flags for temporary ddl #12561
Conversation
0e03cba
to
a023c22
Compare
sorry, i took a bit longer than i was hoping with this one as i tried to get it to require minimal changes in the diff but as it is an api change i ended up spending quite a lot of time reading code. I have some questions and i'm super open to feedback, i'll self-review a few places where i was especially confused |
a023c22
to
2cb1e93
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @hailelagi . I think we should add some sqllogictest tests for this change. Perhaps in ddl.slt. In order to ensure the generation of correct logical plans, we can add tests similar to the following.
set datafusion.explain.logical_plan_only=true;
explain create temp table t(a int);
2cb1e93
to
7ac494c
Compare
This PR seems to be failing CI and needs some more work, so marking it as a draft. When it is ready for another look, please mark it as ready for review |
7ac494c
to
c909da2
Compare
c909da2
to
5a82ff4
Compare
Signed-off-by: Haile Lagi <[email protected]>
5a82ff4
to
d955734
Compare
Co-authored-by: Jonah Gao <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM👍, thanks @hailelagi
* Minor: add flags for temporary ddl Signed-off-by: Haile Lagi <[email protected]> * Update datafusion/proto/src/logical_plan/mod.rs Co-authored-by: Jonah Gao <[email protected]> --------- Signed-off-by: Haile Lagi <[email protected]> Co-authored-by: Jonah Gao <[email protected]>
Which issue does this PR close?
Closes #12463
Rationale for this change
This introduces a new flag option
temporary
on theDdlStatement
of:CreateMemoryTable
,CreateExternalTable
These flags enable an implementation built on DF to define the semantics of a temporary table.
What changes are included in this PR?
Are these changes tested?
yes
Are there any user-facing changes?