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

Support delete sql #4

Open
lewiszlw opened this issue Aug 10, 2023 · 5 comments
Open

Support delete sql #4

lewiszlw opened this issue Aug 10, 2023 · 5 comments

Comments

@lewiszlw
Copy link
Member

No description provided.

@Tianpingan
Copy link
Contributor

I am working on it

@geofmureithi
Copy link

@Tianpingan Any update on this?

@lewiszlw
Copy link
Member Author

I think he didn't work on this. Feel free to take this issue if you have interest.

@geofmureithi
Copy link

@lewiszlw could you provide a basic idea of what I should look for and work on. A tasklist might also be good.

@lewiszlw
Copy link
Member Author

lewiszlw commented Oct 28, 2024

@geofmureithi I haven't worked on this project for about 7 months (I just don't have much time), these are something I can think of now.

  • Convert delete ast to logical plan
  • Convert delete logical plan to physical plan
  • Buffer pool manager supports delete tuple from a page (we might need a solution to reuse these freed space)
  • Update btree if needed

You can refer to cmu bustub:

  1. https://github.com/cmu-db/bustub/blob/master/src/planner/plan_insert.cpp#L42
  2. https://github.com/cmu-db/bustub/blob/master/src/execution/delete_executor.cpp

If you have some better ideas, welcome to communicate with me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants