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

Make recipe errors more user-friendly #1118

Merged
merged 3 commits into from
Apr 9, 2024
Merged

Conversation

courtneyholcomb
Copy link
Contributor

@courtneyholcomb courtneyholcomb commented Apr 9, 2024

Resolves SL-1954

Description

Users have been seeing "Recipe not found" errors, but they aren't likely to understand what that means. This can happen if the specs they requested are not all joinable, so we want to give them an error that makes that more clear.

@cla-bot cla-bot bot added the cla:yes label Apr 9, 2024
Copy link

linear bot commented Apr 9, 2024

@courtneyholcomb courtneyholcomb marked this pull request as ready for review April 9, 2024 18:24
Copy link
Contributor

@tlento tlento left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@@ -653,7 +653,7 @@ def _build_plan_for_distinct_values(self, query_spec: MetricFlowQuerySpec) -> Da
linkable_spec_set=required_linkable_specs, time_range_constraint=query_spec.time_range_constraint
)
if not dataflow_recipe:
raise UnableToSatisfyQueryError(f"Recipe not found for linkable specs: {required_linkable_specs}")
raise UnableToSatisfyQueryError(f"Unable to join all items in request: {required_linkable_specs}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this user-facing, and do we have any idea know when it happens and why? If so we could maybe add some more details around possible causes, but at this point I don't think we have that info yet.

I'm kind of wondering why this happens.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it's a good question! I did a quick DD search of the past week of these errors: https://dbtlabsmt.datadoghq.com/logs?query=recipe%20not%20found%20&cols=host%2Cservice&fromUser=true&index=%2A&messageDisplay=inline&refresh_mode=sliding&storage=hot&stream_sort=desc&viz=stream&from_ts=1712081485492&to_ts=1712686285492&live=true
There is some stuff I don't understand here, like how a non-additive dimension spec might impact the dataflow plan.

metricflow/dataflow/builder/dataflow_plan_builder.py Outdated Show resolved Hide resolved
@courtneyholcomb courtneyholcomb merged commit 72f7d6e into main Apr 9, 2024
13 checks passed
@courtneyholcomb courtneyholcomb deleted the court/error-msg branch April 9, 2024 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants