-
-
Notifications
You must be signed in to change notification settings - Fork 989
TSQL: L025: Code corruption -- alias removed by accident #3966
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingrule bugA rule is not working as intended, either missing errors or incorrectly highlighting non-errorsA rule is not working as intended, either missing errors or incorrectly highlighting non-errorst-sqlIssues related to the T-SQL/TSQL/Transact SQL dialectIssues related to the T-SQL/TSQL/Transact SQL dialect
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingrule bugA rule is not working as intended, either missing errors or incorrectly highlighting non-errorsA rule is not working as intended, either missing errors or incorrectly highlighting non-errorst-sqlIssues related to the T-SQL/TSQL/Transact SQL dialectIssues related to the T-SQL/TSQL/Transact SQL dialect
Type
Fields
Give feedbackNo fields configured for issues without a type.
Search before asking
What Happened
I have a query similar to the following one:
Expected Behaviour
Query is fixed properly and can still be executed.
Observed Behaviour
sqlfluff thinks the aliases can be removed:The aliases
bandcare removed and thus the query is not valid anymore.How to reproduce
Try to fix the following query with tsql dialect:
Dialect
tsql
Version
1.3.2
Configuration
nothing special
Are you willing to work on and submit a PR to address the issue?
Code of Conduct