-
Notifications
You must be signed in to change notification settings - Fork 70
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
SQL parsing into an AST fails on INTERVAL and SAMPLE statements #958
Comments
The AST is notorious for having SQL syntax problems. I'll try to reproduce this locally and see if it can be patched. @bossinc We might need to start exploring other options for the AST. I believe one of its main purposes is for extracting the table name (at least for adhoc filters). Maybe we can add a field to the SQL UI where people can manually write the table name. Or we can find a good Go module on the backend to handle it and use that to get an AST via HTTP request to the plugin. |
Thank you. |
The AST plugin is pretty flexible actually, maybe we can just add the keyword somewhere. Thanks for mentioning that |
Any update about the issue? |
No update yet, although I've been looking into alternatives for the AST parser since this is just one of many issues related to the current implementation |
What happened:
Clickhouse query which contains:
or
fails at SQL parsing into an AST when adhoc filter is applied
What you expected to happen:
Apply adhoc filter and perform query
How to reproduce it (as minimally and precisely as possible):
Apply any adhoc filter and run the query:
and watch javascript console log:
Environment:
The text was updated successfully, but these errors were encountered: