Skip to content
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

Can't parse some identifiers when using Clickhouse dialect #5889

Closed
3 tasks done
Pavel-Strybuk opened this issue May 17, 2024 · 0 comments · Fixed by #5890
Closed
3 tasks done

Can't parse some identifiers when using Clickhouse dialect #5889

Pavel-Strybuk opened this issue May 17, 2024 · 0 comments · Fixed by #5890
Labels
bug Something isn't working clickhouse Issues relating to the Clickhouse dialect

Comments

@Pavel-Strybuk
Copy link
Contributor

Search before asking

  • I searched the issues and found no similar issues.

What Happened

It can't parse identifiers like _1 which are correct in Clickhouse

Expected Behaviour

It should recognize identifiers like _1

Observed Behaviour

$ sqlfluff lint ~/test.sql --dialect clickhouse
== [/home/.../test.sql] FAIL                                                                                                                                                                                                  
L:   1 | P:   1 | AM04 | Query produces an unknown number of result columns.
                       | [ambiguous.column_count]
L:   1 | P:  10 |  PRS | Line 1, Position 10: Found unparsable section: 'FROM
                       | _1.Table'
WARNING: Parsing errors found and dialect is set to 'clickhouse'. Have you configured your dialect correctly?
All Finished 📜 🎉!

How to reproduce

Try to parse sql:

SELECT * FROM _1.Table

Dialect

Clickhouse

Version

sqlfluff, version 3.0.5
Python 3.11.9

Configuration

No additional configuration

Are you willing to work on and submit a PR to address the issue?

  • Yes I am willing to submit a PR!

Code of Conduct

@Pavel-Strybuk Pavel-Strybuk added the bug Something isn't working label May 17, 2024
@github-actions github-actions bot added the clickhouse Issues relating to the Clickhouse dialect label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working clickhouse Issues relating to the Clickhouse dialect
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant