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

[Feature] Improve Semantic Manifest parsing error message #9849

Open
3 tasks done
DevonFulcher opened this issue Apr 3, 2024 · 5 comments · May be fixed by #10128
Open
3 tasks done

[Feature] Improve Semantic Manifest parsing error message #9849

DevonFulcher opened this issue Apr 3, 2024 · 5 comments · May be fixed by #10128
Labels
enhancement New feature or request good_first_issue Straightforward + self-contained changes, good for new contributors! Refinement Maintainer input needed semantic Issues related to the semantic layer

Comments

@DevonFulcher
Copy link

Is this your first time submitting a feature request?

  • I have read the expectations for open source contributors
  • I have searched the existing issues, and I could not find an existing issue for this feature
  • I am requesting a straightforward extension of existing dbt functionality, rather than a Big Idea better suited to a discussion

Describe the feature

Improve this error message to provide more details as to what is wrong with the Semantic Manifest. This was brought up here (internal to dbt Labs).

Describe alternatives you've considered

No response

Who will this benefit?

Users who are trying to parse a semantic manifest.

Are you interested in contributing this feature?

No response

Anything else?

No response

@DevonFulcher DevonFulcher added enhancement New feature or request good_first_issue Straightforward + self-contained changes, good for new contributors! triage semantic Issues related to the semantic layer labels Apr 3, 2024
@dbeatty10
Copy link
Contributor

Thanks for opening this issue @DevonFulcher !

It looks like the current error message is:

Semantic Manifest validation failed.

@Jstein77 do you have any recommendations for how we should proceed?

@dbeatty10 dbeatty10 added Refinement Maintainer input needed and removed triage labels Apr 3, 2024
@Jstein77
Copy link

Jstein77 commented Apr 10, 2024

@dbeatty10 great Q! It depends what the validation error was. @DevonFulcher we probably throw an error here in DSI, can we thread that error message through here?

@Klimmy Klimmy linked a pull request May 10, 2024 that will close this issue
5 tasks
@Klimmy
Copy link

Klimmy commented May 10, 2024

Hey @DevonFulcher, @dbeatty10, @Jstein77,

What do you think about raising an error inside the validate() method and making it return None instead of bool?
From what I checked, this behavior aligns with other validations in the project (example_1, example_2, example_3).

I've created a draft PR (#10128) with the implementation. If you think this approach is fine, I'll convert it to the normal PR.

Also, could you help me with these two points?

  1. Could you hint at how to reproduce this issue locally in dbt-core CLI? I've created a semantic model in yml file. "Forgot" to add primary type to entities (I believe it should trigger this error), and then executed dbt run. But everything worked fine in the main branch.
  2. I am hesitant about this point from the checklist. Could you help me understand if this change affects the interface?
    This PR has no interface changes (e.g. macros, cli, logs, json artifacts, config files, adapter interface, etc) or this PR has already received feedback and approval from Product or DX

@dbeatty10
Copy link
Contributor

@Jstein77 can you answer question 1?

@Klimmy For question 2, this PR this PR has no interface changes, so I went ahead and updated that checklist item accordingly.

I've created a draft PR (#10128) with the implementation. If you think this approach is fine, I'll convert it to the normal PR.

Go ahead and flip the PR from "draft" to "ready" whenever you want, and we'll queue it up for one of our engineers to review the approach.

@Klimmy
Copy link

Klimmy commented May 13, 2024

Hey, no worries, I was able to test it using dbt --no-partial-parse run. Everything works as expected from my side. I will convert the PR to "ready".
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good_first_issue Straightforward + self-contained changes, good for new contributors! Refinement Maintainer input needed semantic Issues related to the semantic layer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants