sqlfluff / sqlfluff

A modular SQL linter and auto-formatter with support for multiple dialects and templated code.
https://www.sqlfluff.com
MIT License
7.35k stars 655 forks source link

Bugfix: ST02 - Compare entire condition expression #5850

Closed WittierDinosaur closed 1 month ago

WittierDinosaur commented 1 month ago

Brief summary of the change made

Fixes #5844 The comparison was previously ignoring array accessors, and just comparing the column reference

Are there any other side effects of this change that we should be aware of?

No

Pull Request checklist

github-actions[bot] commented 1 month ago

Coverage Results ✅

Name    Stmts   Miss  Cover   Missing
-------------------------------------
TOTAL   17731      0   100%

225 files skipped due to complete coverage.
coveralls commented 1 month ago

Coverage Status

coverage: 99.985%. remained the same when pulling 9453375cf6a7e05e40d6dfcbd13e5ee80c128c9e on bugfix-5844 into d48ded5606e564990de135879f00b3932670f45f on main.