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

Partial parsing issue with generated metrics on multiple semantic models in the same file #10450

Closed
gshank opened this issue Jul 16, 2024 · 0 comments · Fixed by #10451
Closed
Assignees

Comments

@gshank
Copy link
Contributor

gshank commented Jul 16, 2024

Current Behavior

If multiple semantic models containing generated metrics (the "create_metric" flag is set to true on a measure) are in the same file and one of the semantic models is modified, the generated metrics for the other semantic model are removed and not replaced. This can result in error messages such as "Saved_Query ... depends on a metric named '...' which was not found".

Expected Behavior

Generated metrics referenced by saved queries are found when they should be.

Steps to Reproduce

  • Create multiple semantic models in the same file, each of which has "create_metric" set for a measure.
  • Modify one of the semantic models and re-parse.
  • Attempt to run a saved query referring to the generated metric from the non-changed semantic model.

Relevant log output

Additional Context

This problem can be avoided by separating out semantic models with generated metrics into separate files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant