-
-
Notifications
You must be signed in to change notification settings - Fork 651
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
L027 bizarre log output: "Unqualified reference '\\n *' found in select" #1668
Comments
The input file has no newlines. Thus, the newline is likely coming from a rule fix. Looking through the logs, I think I can confirm this. See this log excerpt:
So the L016 fixes are probably causing something weird. |
I examined the segments involved at the time L027 reports the issue.
If I modify
Now L027 still detects an issue, but the
|
This issue looks like another occurrence of #1304. |
Tested this on latest Do get a few others, but think it's right they are there:
|
Expected Behaviour
Observed Behaviour
Run this command:
On this file:
The log output includes text:
DEBUG [L027] !! Violation Found: "Unqualified reference '\n *' found in select with more than one referenced table/view."
This is at best a bug in L027, but seeing a "reference" including newline and whitespace makes me wonder if there's a lexer or parser issue as well.
Steps to Reproduce
Dialect
Version
Include the output of
sqlfluff --version
along with your Python versionConfiguration
The text was updated successfully, but these errors were encountered: