-
Notifications
You must be signed in to change notification settings - Fork 244
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
AttributeError raised using parenthesized where clause #426
Comments
Strangely, if dialect was not assigned, python api could print result correctly except for a DeprecationWarning:
Output: |
Did you specify mysql as dialect in command line?
I believe this generate the exact same exception as python api. Can you kindly confirm? |
Yes, command line generated same error as python api if specify mysql as dialect. |
The problem is with parenthesized where clause. After removing the parenthesis, it's working fine with following SQL using mysql dialect:
It's not limited to mysql only. All sqlfluff implementation has the same issue. A super simplified test case with ansi dialect also trigger the same exception: SELECT * FROM dual
WHERE (1=1);
We need to get this fixed. |
When parsing same sql, LineageRunner failed while command line could give right result.
Here is sql I used: (dialect: mysql)
Result of command line:
Python script:
Result of python api:
And I'm using sqllineage v1.4.6, both python 3.9 and python 3.10 got same result.
The text was updated successfully, but these errors were encountered: