Skip to content

Extend PreventIndexCreation cop

Max Orefice requested to merge mo-extend-index-creation-prevention-cop into master

Ref: #339280 (closed)

What does this MR do?

Following up !68913 (merged) where we discovered that our existing cop was not catching all use cases when creating a new index:

add_concurrent_index "ci_builds", ... # table name is a string
add_concurrent_index TABLE_NAME,  ... # table name is a constant

This MR extends our existing cop to make sure we will catch all these false positives once this MR is merged.

Does this MR meet the acceptance criteria?

Conformity

Edited by Max Orefice

Merge request reports

Loading