vadiem_janssens
08/15/2022, 2:19 PMmeltano.yml file, howerver I can't get sqlfluff to work.
utilities:
- name: sqlfluff
variant: sqlfluff
pip_url: sqlfluff[dbt]==1.2.1 sqlfluff-templater-dbt==1.2.1
executable: sqlfluff
I've also created a .sqlfluff file with the following contents:
[sqlfluff]
templater = dbt
dialect = postgres
After that, I run meltano install and meltano invoke sqlfluff lint -v, but I keep getting the following error
Starting in sqlfluff version 0.7.0 the dbt templater is distributed as a separate python package. Please pip install sqlfluff-templater-dbt to use it.
Error loading config: Requested templater 'dbt' which is not currently available. Try one of raw, jinja, python, placeholder
Anyone has an idea what might cause this?
There is no mention of adding the dbt templater separately in https://hub.meltano.com/utilities/sqlfluff, so I don't understand why it doesn't work out of the box.vadiem_janssens
08/15/2022, 2:43 PMdbt-core to the list as well, like
utilities:
- name: sqlfluff
variant: sqlfluff
pip_url: dbt-core==1.2.0 dbt-postgres==1.2.0 sqlfluff[dbt]==1.2.1 sqlfluff-templater-dbt==1.2.1
executable: sqlfluff
Now I'm getting the following error:
Could not find profile named 'meltano'
What does 'profile' in this context mean?vadiem_janssens
08/15/2022, 3:01 PMvadiem_janssens
08/15/2022, 3:02 PMUnable to do partial parsing because config vars, config profile, or config target have changed
Unable to do partial parsing because profile has changed
Unable to do partial parsing because env vars used in profiles.yml have changed
Not a clue what this means or how I can resolve it.aaronsteers
08/15/2022, 5:15 PMpat_nadolny
08/15/2022, 5:43 PMpat_nadolny
08/15/2022, 5:46 PMaaronsteers
08/15/2022, 5:57 PMaaronsteers
08/15/2022, 5:58 PMpat_nadolny
08/15/2022, 7:03 PMaaronsteers
08/16/2022, 12:07 AMvadiem_janssens
08/16/2022, 8:38 AMvadiem_janssens
08/16/2022, 8:43 AMinstall sqlfluff command should do everything to get it in a working state. It was quite a painful experience to be honest, as I had to combine so many different resources to get it to work.vadiem_janssens
08/16/2022, 8:48 AMAlso - after running successfully once, I'd be interested to know if those warnings go away if no values have changed between invocations.No, the warning persists after runs.
vadiem_janssens
08/16/2022, 8:59 AMLooking back at what I had to do yesterday, either the installation instructions need to be updated or theI've added my recommendations to update the docs here: https://github.com/meltano/hub/pull/633#issuecomment-1216340315. It seems to work right now, thank you all for the help 🙂.command should do everything to get it in a working state.install sqlfluff