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

Remove error for date part with non-metric time dimension #813

Merged
merged 3 commits into from
Oct 17, 2023

Conversation

courtneyholcomb
Copy link
Contributor

Description

Found a bug where date part queries error for any time dimension that isn't metric_time. This wasn't caught because all of our tests used metric_time (in both MF and MFS) - lesson learned! This creates an instant bug if you try to use any time dimension besides metric_time in our Tableau integration.
This is not the ideal fix. Ideally we'll need to put date_part in the validation path the way that time_granularity is, but we don't have time to do that before the fix needs to ship.

@cla-bot cla-bot bot added the cla:yes label Oct 17, 2023
@github-actions
Copy link

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide.

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.

Seems reasonable. We definitely need a better approach in the query parser logic.

@courtneyholcomb courtneyholcomb merged commit 49147ab into main Oct 17, 2023
6 checks passed
@courtneyholcomb courtneyholcomb deleted the court/date-part-not-metric-time branch October 17, 2023 01:06
sarbmeetka pushed a commit to sarbmeetka/metricflow that referenced this pull request Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants