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

[Metrics V2] Available metrics changes #42720

Merged
merged 1 commit into from
May 16, 2024

Conversation

snoe
Copy link
Contributor

@snoe snoe commented May 15, 2024

Fixes #42470

@snoe snoe added .Team/QueryProcessor :hammer_and_wrench: no-backport Do not backport this PR to any branch labels May 15, 2024
@snoe snoe requested a review from a team May 15, 2024 19:00
@snoe snoe self-assigned this May 15, 2024
@snoe snoe requested a review from camsaul as a code owner May 15, 2024 19:00
Copy link

replay-io bot commented May 15, 2024

Status Complete ↗︎
Commit 611ee27
Results
⚠️ 2 Flaky
2513 Passed

Copy link
Contributor

@metamben metamben left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +136 to +138
(not-empty
(mapv maybe-add-aggregation-pos
[s-metric]))
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
(not-empty
(mapv maybe-add-aggregation-pos
[s-metric]))
[(maybe-add-aggregation-pos s-metric)]

:type :metric}]
(let [query (lib/query mp (lib.metadata/table mp (mt/id :products)))]
(is (=? [(lib.metadata/metric mp (:id source-metric))]
(lib/available-metrics query)))))))
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have a test with a multi-stage metric as the source?

@snoe snoe merged commit 608ac13 into metrics-v2 May 16, 2024
115 checks passed
@snoe snoe deleted the metrics-v2-available-metrics-no-join branch May 16, 2024 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-backport Do not backport this PR to any branch .Team/QueryProcessor :hammer_and_wrench:
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants