-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 for Issue:1731, drop table if exists may not result in schema change #1764
Conversation
Thank you very much for this! It looks good and I fully support this change. I left a few comments. Can you please realize these? After that, I'll merge it. Thanks!
|
Review status: 0 of 2 files reviewed at latest revision, 13 unresolved discussions. go/vt/schemamanager/tablet_executor.go, line 94 [r1] (raw file):
go/vt/schemamanager/tablet_executor.go, line 94 [r1] (raw file):
|
Reviewed 1 of 2 files at r2. go/vt/schemamanager/tablet_executor.go, line 119 [r1] (raw file):
|
Review status: 1 of 3 files reviewed at latest revision, 1 unresolved discussion. go/vt/schemamanager/tablet_executor.go, line 119 [r1] (raw file):
|
|
Thanks Michael for the details, i will give it a try in the next few days and will get back in case i run into issues. |
This Pull Request covers the fix for issue #1731,
Certain Statements like drop table if exists may not result in a schema change. This fix validates if the schema diff is zero and the query is dropStr, it shouldn;t throw an error in ApplySchema.
@michael-berlin , @alainjobart .Please check and let me know in case of any concerns.
This change is