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
DBeaver incorrectly gives syntax error highlighting #30227
Comments
Hello @ufuk-ergin-carbon, Please provide the mentioned script and the table's DDL so we can reproduce the issue. Thanks! |
Hi @ShadelessFox , here is the script file. It has multiple tables. Do you need the DDL of all the joined tables?
|
Thank you for your quick answer. We will try reproducing the issue without the DDL; the query analysis probably failed due to the script's complexity, so it shouldn't depend on the schema. Can you also provide log files? We might find something helpful there: https://github.com/dbeaver/dbeaver/wiki/Log-files#log-files |
Sure. Here are the log files. Thank you for your analysis. dbeaver-debug-1715096569377.log |
Taking a look at the parser's grammar used in dbeaver, while it parses typecast of the form expr::typename, it doesn't handle expr:something::typename. Which is also easily discoverable by observing where the identifiers stop being highlighted in this select statement. So its about the support of the json-related syntax constructs apparently. |
@ged-yuko please create a separate issue and provide samples and other useful details there. |
Snowflake documentation demonstrates expressions of the Here some offtopic follows: |
Thank you for report |
Description
The syntax highlighting is incorrectly red even though all the references are fine and the query runs just fine. Attaching the screenshot.
DBeaver Version
Version 24.0.4.202405051837
Operating System
MacOs Sonoma 14.4.1 (23E224)
Database and driver
Snowflake Server: Snowflake 8.16.10
Driver: Snowflake 3.14.4
Steps to reproduce
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: