`dbt_utils.star` macros bug
See original GitHub issueDescribe 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 😃
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Star macro syntax error · Issue #111 · dbt-labs/dbt-utils - GitHub
I've long had an item on my todo list to 1) throw an error message if an ephemeral model is passed to star...
Read more >Upgrading to dbt utils v1.0 - dbt Developer Hub
For the first time, dbt utils is crossing the major version boundary. ... in the star() macro, you can now disable quoting if...
Read more >dbt / jinja: Add coalesce to every column coming from dbt_utils ...
The problem is actually with the line you tried to comment out! Jinja is templated first, and then the SQL is passed to...
Read more >lonly/dbt-utils - Gitee
Reporting bugs and contributing code; Dispatch macros ... For compatibility details between versions of dbt-core and dbt-utils, ... star (source).
Read more >dbt Guide - GitLab
Macros. Naming conventions; Structure; dbt-utils. Seeds. Organizing columns ... After a while, the build fails due to a timeout error. Apparently the model ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@mc-introhive Try this,
compare across forksYou may have to close your PR at https://github.com/mc-introhive/dbt-utils/pull/1 and then retry if what I suggested above doesn’t work.
@mc-introhive you can contribute by forking the project and then opening a PR back to the main project.
If you’re new to open source, I recommend using the GitHub desktop app as it will guide you through the workflow of cloning a repo with the purpose of contributing back to it. For a change of this size, you could also fork it in the web browser, change the character in the web editor, and then open a PR from the prompt after that.
Let me know if you need a bit more of a nudge in the right direction - happy to help get people set up to contribute!