-
Notifications
You must be signed in to change notification settings - Fork 41
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
fix: actually drop delta tables #2415
Conversation
so this is technically working fine, but it isn't working inside of a test, likely because of the known issues with the scheduler. The task gets scheduled, but never picked up. Even when putting a long sleep in the test, the task never gets picked up. So since we can't write an integration test for this, I'll keep this in a WIP until we can get our scheduler working properly |
When you say technically working fine, you mean that you can observe it working correctly in manual testing but that because the distributed execution scheduler is not working in the testing environment that your tests don't pass? I think keeping it draft until distexec gets more ironed out seems fine. It also doesn't seem necessary to use the distexec scheduler for this because:
Having said that, all of the potential bugs or issues from using the distexec scheduler before everything becomes distexec is just that we'd regress on this issue, which is already happening today, so I wouldn't worry about it too hard, though obviously this is all moot until the scheduler works better. |
yeah, it functionally works, but not in the testing suite. |
#[prost(message, repeated, tag = "4")] | ||
pub tbl_entries: Vec<TableEntry>, |
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.
If we have table entries, do we need table references? Can we just use the info provided in entries?
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.
I originally wanted to go that route, but we don't have access to an entry resolver inside the execution context, only during planning.
dd482ed
to
75ac923
Compare
…03/native-table-drop
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.
seems reasonable, one question.
closes #1870
I wanted to open this up to make sure that others are aligned on the direction I took with this before getting too far. This works as is, but could use a bit of cleanup in areas.
It uses our scheduler to spawn a system_exec to remove the delta tables. Currently it just logs the output, but we could put them in a table or something else.. Logging seemed to be fine for now.. I didn't want to over-engineer and throw away a bunch of work if this isn't the direction we want to take.