juan_luis_cano_rodriguez
06/28/2022, 7:23 AMsqlfluff
with dbt models managed by meltano? I tried but I got a bunch of errors, so I'm asking before I get too deep into the rabbit hole 🐇alexander_butler
06/28/2022, 12:50 PMedgar_ramirez_mondragon
06/28/2022, 1:58 PMpat_nadolny
06/28/2022, 3:29 PMdbt_<adapter_name>
so sqlfluff can override dbt env vars. Not sure if the same issue youre having but my meltano project was complaining that dbt env vars werent set when I ran sqlfluff, this namespace change fixed those.juan_luis_cano_rodriguez
06/29/2022, 3:52 PMvadiem_janssens
08/15/2022, 2:09 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
vadiem_janssens
08/15/2022, 2:10 PMmeltano 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
juan_luis_cano_rodriguez
08/15/2022, 2:13 PMpat_nadolny
08/15/2022, 2:29 PMdbt-core
to your pip url also like https://github.com/meltano/squared/blob/6271f7d9b987c128114dc376618b434e1929b8e4/data/utilities/utilities.meltano.yml#L5pat_nadolny
08/15/2022, 2:30 PMvadiem_janssens
08/15/2022, 2:41 PM