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

Backport Extend param substitution to handle datetimes to 48 (#38695) #39062

Merged

Conversation

calherries
Copy link
Contributor

@calherries calherries commented Feb 22, 2024

Manually backports: #38695

Also cherry-picks #37813 which is a necessary prerequisite for the fix.

I manually tested this fixes #38037 using the repro steps here #38037 (comment)

calherries and others added 2 commits February 22, 2024 17:41
* Extend param substitution to handle datetimes

Prior to this only dates were supported as values for native timestamp field parameters.

* Check for exclusion filter when determining alignment unit

Co-authored-by: Case Nelson <case@metabase.com>
@metabase-bot metabase-bot bot added the .Team/BackendComponents also known as BEC label Feb 22, 2024
@calherries calherries requested a review from a team February 22, 2024 15:51
Copy link

replay-io bot commented Feb 22, 2024

Status Complete ↗︎
Commit 3899fb1
Results
⚠️ 6 Flaky
2105 Passed

Copy link
Contributor

@snoe snoe left a comment

Choose a reason for hiding this comment

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

LGTM do we need to update docs/developer-guide/driver-changelog.md for align-temporal-unit-with-param-type-and-value?

@calherries
Copy link
Contributor Author

calherries commented Feb 22, 2024

@snoe I wondered about that. I'm not sure what to do when backporting driver changes, because we only have a section for the 48.0 release. This is just a warning that we're deprecating the multimethod so I think it's fine to leave in the 49 release and omit it here?

@calherries
Copy link
Contributor Author

Looks like there are more failures

@calherries
Copy link
Contributor Author

Looks like the entry needs to be made in the changelog for the tests to pass. I'll add it then

@calherries calherries enabled auto-merge (squash) February 22, 2024 16:48
@calherries calherries merged commit c192db1 into release-x.48.x Feb 22, 2024
104 checks passed
@calherries calherries deleted the backport-native-query-datetime-filtering-48 branch February 22, 2024 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.Team/BackendComponents also known as BEC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants