dbt_utils.star
: Remove trailing whitespace in the comment when no column is returned
#959
Open
1 task done
Describe the bug
When the macro
dbt_utils.star
uses a non-existing model, the output of the compilation is:Notice the trailing whitespaces
yet
,during
, which fail sqlfluff's linting withL001 Unnecessary trailing whitespace
.While there, use
{%- ... -%}
instead of{% ... %}
in the macro statements to remove trailing whitespaces.Steps to reproduce
Compile a non existing table:
which returns:
Expected results
Actual results
Which database are you using dbt with?
The output of
dbt --version
:Additional context
We lint our compiled dbt models. When a model doesn't exist in one of our database, it compiles with the message that contains whitespaces and fails with sqlfluff's
L001 Unnecessary trailing whitespace.
Are you interested in contributing the fix?
Tested in local. I will open a Pull Request
The text was updated successfully, but these errors were encountered: