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

Add new SavedQuery protocol #144

Closed
Tracked by #140
QMalcolm opened this issue Sep 7, 2023 · 0 comments · Fixed by #148
Closed
Tracked by #140

Add new SavedQuery protocol #144

QMalcolm opened this issue Sep 7, 2023 · 0 comments · Fixed by #148
Assignees
Labels
enhancement New feature or request Needs Refinement

Comments

@QMalcolm
Copy link
Collaborator

QMalcolm commented Sep 7, 2023

In dbt-labs/metricflow#765 new functionality for saved queries will be introduced in MetricFlow. To support this we need to extend the SemanticManifest protocol to have a new top level attribtue saved_queries which will be a sequence of SavedQuery protocols.

The SavedQuery protocol will need to have the following attributes

  • name a string
  • description an optional string
  • query a sub protocol Query

The Query protocol will need to have the following attributes

  • metrics an (optional?) list of metrics
  • group_bys an (optional?) list of ?
  • where an (optional?) ?
  • limit an (optional?) integer
  • order an (optional?) ?
@QMalcolm QMalcolm changed the title Add new save_query protocol definition Add new saved_query protocol definition Sep 7, 2023
@QMalcolm QMalcolm added enhancement New feature or request Needs Refinement labels Sep 7, 2023
@QMalcolm QMalcolm changed the title Add new saved_query protocol definition Add new SavedQuery protocol Sep 7, 2023
plypaul added a commit that referenced this issue Sep 14, 2023
plypaul added a commit that referenced this issue Sep 14, 2023
plypaul added a commit that referenced this issue Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Needs Refinement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants