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

Allow different templaters simultaneously in sqlfluff #21936

Open
grihabor opened this issue Feb 9, 2025 · 0 comments · May be fixed by #21937
Open

Allow different templaters simultaneously in sqlfluff #21936

grihabor opened this issue Feb 9, 2025 · 0 comments · May be fixed by #21937

Comments

@grihabor
Copy link
Contributor

grihabor commented Feb 9, 2025

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.

@grihabor grihabor linked a pull request Feb 9, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant