Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I fix 'unparsable' sqlfluff lint error

Tags:

dbt

sqlfluff

I am receiving the error L: 3 | P: 1 | PRS | Found unparsable section:.

This is when I am calling the date_spine macro provide by dbt_utils. Has anyone come across this before and what expected value to set in the definition of the macro in sqlfluff?

See as follows for defining macro in sqlfluff file in dbt:

date_spine = {% macro date_spine(datepart, start_date, end_date) %}'HERE'{% endmacro %}

like image 817
verrellca Avatar asked Aug 31 '25 17:08

verrellca


1 Answers

You don't need to set date_spine = portion, just define the macro as:

{% macro date_spine(datepart, start_date, end_date) %}'HERE'{% endmacro %}
like image 75
Jordan Ryan Avatar answered Sep 07 '25 14:09

Jordan Ryan