SQLFluff Auto-Fixer Corrupted SQL in 2 of 2,249 Test Cases, Developer Finds
A developer systematically ran 2,249 test fixtures from the SQLFluff SQL linter through its auto-fix feature to check whether the fixer ever produced output the tool itself could not parse. Across 28 dialects, the experiment flagged 8 corruption cases and 31 instability cases, but careful triage reduced these to just 2 genuine bugs. One confirmed bug involved whitespace removal causing adjacent tokens to fuse — for example, turning '- -' into '--', which SQL interprets as a line comment, silently discarding data. The second bug involved MySQL and MariaDB account-spec syntax where a formatting rule conflicted with 'user'@'host' expressions. The author emphasizes that distinguishing real bugs from false positives — such as pre-existing parser gaps or expected single-pass instability — was the critical skill in making a credible bug report.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in