-
Notifications
You must be signed in to change notification settings - Fork 3
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
Formatting is broken #66
Comments
Our repository has the following YAML in the file uses: tinybirdco/ci/.github/workflows/ci.yml@main I will use the |
It turns out the |
you can change the template to:
Could you copy/paste how you are using it? I guess it should work 🤔 |
I tried all the ways that were outlined here (ie top of file, in the middle of a statement) and it still didn't work. This was specifically for a query like the one in my description which the formatter currently doesn't seem to handle correctly |
Hi @joeytepp we've fixed the issue with the CASE directive that prevent files to be correctly formatted. It's been fixed in tinybird-cli 3.6.1.dev5 and will be released next week. Thanks! |
Running into some issues in CI since #63 shipped. Have some complex queries that involve template variables and nested subqueries that the formatter says are incorrectly formatted, but when I format using the
--yes
option it just indents all the code. While it would be nice to fix this in the CLI adding the ability to skip formatting in the github actions workflow would be a good workaround for the time being.Example pipe definition to reproduce:
The text was updated successfully, but these errors were encountered: