Skip to content

Consider extending and improving sqruff #3

@DamianMaslanka5

Description

@DamianMaslanka5

My understanding is that sqruff (and sqlfluff) has similar goals to this project.

Recently I tested sqruff (sqruff-md) for formatting sql queries in clickkouse docs, see related PRs:

It is not perfect (quarylabs/sqruff#1716), but it is usable from cli and in VS Code, see available rules https://github.com/quarylabs/sqruff/blob/main/docs/rules.md

sqruff additionaly supports templaters. I am not sure what is the status of the dbt templater, but it looks like it is a popular request and clickhouse-analyzer should also support dbt in the future.

Also there is some interest from @Blargian to introduce a SQL linter into CI related to clickhouse-docs, see ClickHouse/clickhouse-docs#3995. I guess this should be clickhouse-analyzer or sqruff.

  1. I just wanted to share that sqruff exists
  2. Have you previously looked at sqruff?
  3. What do you think about contributing to sqruff to improve support for clickhouse in sqruff, instead of creating a new project which has similar goals?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions