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

🤖 backported "Fixes filters against datetime binned expressions" #38975

Merged

Conversation

metabase-bot[bot]
Copy link
Contributor

@metabase-bot metabase-bot bot commented Feb 20, 2024

* Fixes filters against datetime binned expressions

Fixes #33528

Turns out that `mbql/normalize` and `lib/normalize` behaved slightly
different and `[:expression "abc" {...}]` refs would drop their opts in
the former path. In order to properly query against binned datetimes
it's important that expression ref does not lose its type or else the
optimizer will not see that `time-interval` needs to convert to a
`between` rather than an `=`.

* Fix test

* Only keep specific keys on expression opts for these expression filters

* Don't run checkin dataset on snowflake or athena
@metabase-bot metabase-bot bot requested a review from camsaul as a code owner February 20, 2024 18:49
@metabase-bot metabase-bot bot added the was-backported apply this to PRs that are themselves backports label Feb 20, 2024
@metabase-bot metabase-bot bot enabled auto-merge (squash) February 20, 2024 18:49
Copy link

replay-io bot commented Feb 20, 2024

Status Complete ↗︎
Commit 6fd8ecf
Results
⚠️ 3 Flaky
2306 Passed

@darksciencebase darksciencebase added the .Team/QueryProcessor :hammer_and_wrench: label Feb 27, 2024
@metabase-bot metabase-bot bot merged commit 07262ba into release-x.49.x Feb 27, 2024
111 checks passed
@metabase-bot metabase-bot bot deleted the backport-7f9afb07bca591c5c77502490a52c0bc181df83d branch February 27, 2024 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.Team/QueryProcessor :hammer_and_wrench: was-backported apply this to PRs that are themselves backports
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants