question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`dbt_utils.star` macros bug

See original GitHub issue

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 😃

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
varun-dccommented, Mar 17, 2022

@mc-introhive Try this,

You 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.

1reaction
joellabescommented, Mar 10, 2022

@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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found