Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Trying to compile model in comments #11181

Open
2 tasks done
Terence-Gawtrey opened this issue Dec 31, 2024 · 1 comment
Open
2 tasks done

[Bug] Trying to compile model in comments #11181

Terence-Gawtrey opened this issue Dec 31, 2024 · 1 comment
Labels
bug Something isn't working triage

Comments

@Terence-Gawtrey
Copy link

Is this a new bug in dbt-core?

  • I believe this is a new bug in dbt-core
  • I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

When compiling a model with a reference to another model in the comments, it gives a standard model missing error, and will not compile. "Compilation Error in model ... ... depends on a node named"

Note: Dialect is T-SQL
Note: using Azure Dedicated Pools adapter (Azure DW)
Note: commented using "--" style and not "{#" style

Expected Behavior

I expect the model compiler to disregard anything in comments e.g. references.

Steps To Reproduce

  1. Create a model
  2. Add a comment using "--" with reference to another model.
  3. Build and run the model.

Relevant log output

No response

Environment

- OS: Windows
- Python: 3.10.12
- dbt: 1.7.18

Which database adapter are you using with dbt?

other (mention it in "Additional Context")

Additional Context

Azure Dedicated Pools adapter

@Terence-Gawtrey Terence-Gawtrey added bug Something isn't working triage labels Dec 31, 2024
Copy link
Contributor

Thank you for your bug report! Our team is will be out of the office for Christmas and our Global Week of Rest, from December 25, 2024, through January 3, 2025.

We will review your issue as soon as possible after returning.
Thank you for your understanding, and happy holidays! 🎄🎉

If you are a customer of dbt Cloud, please contact our Customer Support team via the dbt Cloud web interface or email [email protected].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

1 participant