-
Notifications
You must be signed in to change notification settings - Fork 429
Check for CREATE/DROP INDEX in schema deltas
#18440
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
dc58b85
Check for `CREATE/DROP INDEX` in schema deltas
erikjohnston 93a2e55
Newsfile
erikjohnston cd6ab9a
Test schema delta
erikjohnston 8e7d9b0
fixup! Check for `CREATE/DROP INDEX` in schema deltas
erikjohnston ca36fb0
This should fail
erikjohnston 3a38bd8
Remove test file
erikjohnston 56fee66
Better variable naming
erikjohnston 5df4d3f
Check for index creation across all changed deltas, not just new ones
erikjohnston 649a9c6
Review
erikjohnston 1a7a982
Allow creating indices on new tables
erikjohnston 02472c2
Test
erikjohnston c291d43
Fixup
erikjohnston 2c67b5f
Remove test file
erikjohnston 0b4874a
Only fetch develop
erikjohnston ea2d8b7
Allow table and index creation to be in different delta files
erikjohnston 430fe29
Update scripts-dev/check_schema_delta.py
erikjohnston 0bff738
Only strip SQL comments once
erikjohnston 983c4dc
Review comments
erikjohnston File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Add lint to ensure we don't add a `CREATE/DROP INDEX` in a schema delta. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
why would we ban
DROP INDEX? Afaik that is instant?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.
It isn't instant for large tables, and takes out aggressive locks, which why there's a
DROP INDEX CONCURRENTLYversionThere 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.
Though TBF it is rare for it to actually cause woe