-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Between Dates filter behaves inconsistently based on whether the column is from a joined table or not #12872
Labels
.Correctness
Priority:P1
Security holes w/o exploit, crashing, setup/upgrade, login, broken common features, correctness
Querying/MBQL
Querying/Nested Queries
Questions based on other saved questions
Querying/Processor
Querying/
.Reproduced
Issues reproduced in test (usually Cypress)
Type:Bug
Product defects
Projects
Milestone
Comments
flamber
added
.Correctness
Priority:P1
Security holes w/o exploit, crashing, setup/upgrade, login, broken common features, correctness
Querying/
Querying/Nested Queries
Questions based on other saved questions
and removed
.Needs Triage
labels
Jul 9, 2020
I have a feeling that it's related to #10824 (and perhaps #11837). Steps to reproduce
|
nemanjaglumac
added a commit
that referenced
this issue
Oct 30, 2020
* Add repro for #12872 (Between Dates filter behaves inconsistently based on whether the column is from a joined table or not)
@camsaul since you're assigned to work on this issue, just a note that a repro has been made, and it should be unskipped and merged together with a fix. |
nemanjaglumac
moved this from In progress
to Unfixed Issue (but cypress repro has been made)
in Cypress Testing
Oct 30, 2020
Fixed by #13991 |
38 Product Pod Planning
automation
moved this from x.37.4+ Bug Fixes (x.37.4: Dec 14)
to Closed Issues and PRs
Dec 9, 2020
This was referenced Feb 5, 2024
Closed
Merged
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
.Correctness
Priority:P1
Security holes w/o exploit, crashing, setup/upgrade, login, broken common features, correctness
Querying/MBQL
Querying/Nested Queries
Questions based on other saved questions
Querying/Processor
Querying/
.Reproduced
Issues reproduced in test (usually Cypress)
Type:Bug
Product defects
Describe the bug
When adding a date filter between two dates (I am currently using Postgres), it will make the filter inclusive of the end date if the column is from the base table, but it will make it exclusive of the end date if the column is from a joined table.
Logs
No errors are generated
To Reproduce
Steps to reproduce the behavior:
WHERE ("public"."line_items"."created_at" >= timestamp with time zone '2020-07-06 00:00:00.000Z' AND "public"."line_items"."created_at" < timestamp with time zone '2020-07-09 00:00:00.000Z')
WHERE "Transaction"."created_at" BETWEEN timestamp with time zone '2020-07-06 00:00:00.000Z' AND timestamp with time zone '2020-07-08 00:00:00.000Z'
Expected behavior
The inclusivity and exclusivity shouldn't change based on whether you are filtering a column from a base table or joined table
Screenshots
Inclusive from base table:
Exclusive from joined table:
Information about your Metabase Installation:
Severity
Moderately severe. We have been using Metabase for over a year now and just noticed it, but it is worrisome because we are putting together weekly financial reports and this off-by-one day error has messed up our reporting. We can train users to add an extra day to reports that are filtering based on a joined date, but if this bug gets fixed, then those reports will be off by a day.
The text was updated successfully, but these errors were encountered: