sqlfluff icon indicating copy to clipboard operation
sqlfluff copied to clipboard

sparksql sql file that fails AL01

Open gvozdvmozgu opened this issue 1 year ago • 0 comments

Search before asking

  • [X] I searched the issues and found no similar issues.

What Happened

sqlfluff fix failed on AL01 on sql file.

Expected Behaviour

sqlfluff is able to fix the errors in the file.

Observed Behaviour

WARNING: Fixes for AL01 not applied, as it would result in an unparsable file. Please report this as a bug with a minimal query which demonstrates this warning.

How to reproduce

select * from (values (1,2), (3,4)) (a, b);

python src/sqlfluff fix --dialect sparksql pg.sql

Dialect

sparksql

Version

sqlfluff, version 3.0.7

Configuration

default

Are you willing to work on and submit a PR to address the issue?

  • [ ] Yes I am willing to submit a PR!

Code of Conduct

gvozdvmozgu avatar Jul 02 '24 21:07 gvozdvmozgu