-
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
bugfix: use the proper interface for comment directives #14267
Conversation
Signed-off-by: Andres Taylor <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Signed-off-by: Andres Taylor <[email protected]>
executor, _, _, _, ctx := createExecutorEnv(t) | ||
session := NewSafeSession(&vtgatepb.Session{TargetString: KsTestUnsharded}) | ||
enableDirectDDL = testcase.enableDirectDDL | ||
enableOnlineDDL = testcase.enableOnlineDDL |
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.
this change is not required anymore, correct?
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.
not really, but I still like it. cleaner to not re-use between tests
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.
executor
is expected to be reused. This also helped in realising the caching issue with other statements.
@@ -1383,6 +1381,7 @@ func TestExecutorDDLFk(t *testing.T) { | |||
for _, stmt := range stmts { | |||
for _, fkMode := range []string{"allow", "disallow"} { | |||
t.Run(stmt+fkMode, func(t *testing.T) { | |||
executor, _, _, sbc, ctx := createExecutorEnv(t) |
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.
same comment as before
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.
few comments, rest looks good.
I do not think we should backport this to old releases as |
Signed-off-by: Andres Taylor <[email protected]>
I don't have strong opinions on the subject. @deepthi? |
That's fine. We should amend the release notes for v15+ and list this as a known issue instead. |
Description
The bug report #14090 exposed an issue where we where not reading comment directives correctly for most statement types. This PR makes sure we read the directives correctly in a lot more situations.
Related Issue(s)
Fixes #14090
Checklist
Deployment Notes