-
-
Notifications
You must be signed in to change notification settings - Fork 708
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
structure.column_order breaks subsequent UNION ALL. #5956
Labels
bug
Something isn't working
Comments
Encountered the same issue with
|
Source that needs to be patched: |
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Search before asking
What Happened
SQLFluff fix produces SQL with changed behavior.
Expected Behaviour
SQL before and after fix is functionally equivalent.
Observed Behaviour
T2 SELECT has reordered columns, which breaks UNION.
How to reproduce
Run sqlfluff fix with disable statement, all good.
Run sqlfluff fix without disable statement, output columns in T2 are reordered, which breaks subsequent union.
Dialect
snowflake
Version
3.0.7
Configuration
default
Are you willing to work on and submit a PR to address the issue?
Code of Conduct
The text was updated successfully, but these errors were encountered: