-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Error when use user
field in where caluse
#14141
Comments
it seems that it's sqlparser parsing error. I created an issue apache/datafusion-sqlparser-rs#1658 |
I think you can work around it by enclosing user in double quotes: select * from t where "user" = 'test'; |
I try to make genericdialect more customizable, but it seems that it maybe not a good idea. ಥ_ಥ |
Note there is: That might be useful:
|
at the beginning, I want to implement a dialect which is similar to generic, but it seems that datafusion sql parser cannot support it easily. because too many |
Describe the bug
To Reproduce
like above
Expected behavior
this query can run success
Additional context
test in datafusion v44.0.0, v43.0.0 and current main, both reported error
not sure if it is a bug or
user
is a keyword, but i also check in duckdb, it workThe text was updated successfully, but these errors were encountered: