-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[CT-2074] [Bug] Error message for exposures gives incorrect node type for TargetNotFound #6928
Closed
2 tasks done
Labels
bug
Something isn't working
good_first_issue
Straightforward + self-contained changes, good for new contributors!
semantic
Issues related to the semantic layer
Comments
github-actions
bot
changed the title
[Bug] Error message for exposures gives incorrect node type for TargetNotFound
[CT-2074] [Bug] Error message for exposures gives incorrect node type for TargetNotFound
Feb 9, 2023
@callum-mcdata Thanks for opening! I think this is a one-liner: dbt-core/core/dbt/parser/manifest.py Lines 1260 to 1271 in 311a57a
|
jtcohen6
added
good_first_issue
Straightforward + self-contained changes, good for new contributors!
Team:Language
labels
Feb 10, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
good_first_issue
Straightforward + self-contained changes, good for new contributors!
semantic
Issues related to the semantic layer
Is this a new bug in dbt-core?
Current Behavior
Assume I have the following exposure:
But I the node
metric('testing')
does not actually exist in my project. If this is the case, I get the following error message when trying to compile:This is incorrect because we can clearly see that this is a
metric
and not a source. When trying out the same functionality with a model node, I get the correct type displayed in the error message. IE:Expected Behavior
I would expect that the CompilationError returned by dbt core would identify the correct target node type. However, for the life of me I cannot figure out where this is coming from. I am fairly certain the error message is arising from
TargetNotFoundError
but I was unable to find the path that routed into there with this issue.Steps To Reproduce
Relevant log output
Shown in earlier messages
Environment
Which database adapter are you using with dbt?
postgres
Additional Context
No response
The text was updated successfully, but these errors were encountered: