Skip to content

dbt_utils.star macros bug #506

Closed
@mc-introhive

Description

Describe the bug

I created an issue in sqlfluff repo, because sqlfluff refuses to recognize dbt_utils macros. More details (steps to reproduce, expected results, actual restuls, logs, system info, etc.) can be found in sqlfluff#2712. However, it turns out when run sqlfluff lint -v, when it hits dbt_utils.star, specifically this block https://github.com/dbt-labs/dbt-utils/blob/main/macros/sql/star.sql#L11 it failed to recognize the execute flag. But it should've been recognized because sqlfluff does compile dbt projects which will trigger an execute flag to be true.

Which database are you using dbt with?

  • postgres
  • redshift
  • bigquery
  • snowflake
  • other (specify: ____________)

Are you interested in contributing the fix?

Yup :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions