Skip to content

Allow different templaters simultaneously in sqlfluff #21936

Open
@grihabor

Description

@grihabor

Is your feature request related to a problem? Please describe.
Let's say I have 2 project that use sql_sources: one project uses templater = python, second project uses templater = jinja. Running sqlfluff on all files produces the following warning:

WARNING    Attempt to set templater to jinja failed. Using python templater. Templater cannot be set in a .sqlfluff file in a subdirectory of the current working directory. It can be set in a .sqlfluff in the current working directory. See Nesting section of the docs for more details. 

Basically one invocation of sqlfluff can only use a single templater.

Describe the solution you'd like
It would be nice to run sqlfluff for different templaters in separate processes to fix this.

Describe alternatives you've considered
Support the feature in sqlfluff itself, but this might be more complicated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions