Skip to content
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

feat(planner): support drop database in new planner #5846

Merged
merged 3 commits into from
Jun 8, 2022

Conversation

ygf11
Copy link
Contributor

@ygf11 ygf11 commented Jun 8, 2022

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

  1. Support drop database in new planner.
  2. Make database-engine option to display sql as origin.

Changelog

  • New Feature
  • Improvement

Related Issues

Fixes #5828
Part of #5775

@vercel
Copy link

vercel bot commented Jun 8, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
databend ⬜️ Ignored (Inspect) Jun 8, 2022 at 11:58AM (UTC)

@mergify
Copy link
Contributor

mergify bot commented Jun 8, 2022

Thanks for the contribution!
I have applied any labels matching special text in your PR Changelog.

Please review the labels and make any necessary changes.

@mergify mergify bot added pr-feature this PR introduces a new feature to the codebase pr-improvement labels Jun 8, 2022
@@ -206,10 +203,17 @@ pub struct CreateDatabaseStmt<'a> {
pub if_not_exists: bool,
pub catalog: Option<Identifier<'a>>,
pub database: Identifier<'a>,
pub engine: DatabaseEngine,
pub engine: Option<DatabaseEngine>,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We still need DatabaseEngine::Default to distinguish none-engine and default engine,

because explicitly specifying engine is allowed in planner v1, like:
CREATE DATABASE t engine=default;

cc: @andylokandy

@ygf11 ygf11 marked this pull request as ready for review June 8, 2022 11:21
@ygf11
Copy link
Contributor Author

ygf11 commented Jun 8, 2022

@mergify update

@mergify
Copy link
Contributor

mergify bot commented Jun 8, 2022

update

✅ Branch has been successfully updated

@andylokandy andylokandy requested a review from leiysky June 8, 2022 13:49
@BohuTANG BohuTANG merged commit 5495519 into databendlabs:main Jun 8, 2022
@ygf11 ygf11 deleted the drop-database branch June 8, 2022 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-review pr-feature this PR introduces a new feature to the codebase
Projects
None yet
4 participants