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

Honor open ranges in date_bin_table #24

Merged
merged 1 commit into from
Jun 5, 2024
Merged

Honor open ranges in date_bin_table #24

merged 1 commit into from
Jun 5, 2024

Conversation

jasonmp85
Copy link
Contributor

@jasonmp85 jasonmp85 commented Jun 5, 2024

Because I was unpacking the endpoints of the range into a naive BETWEEN check, ranges with open ends (i.e. non-inclusive) were not honored in the final output.

Adding a range inclusion check on the JOIN fixes the issue. Added a new test query to verify the correct behavior.

Fixes #19.

Because I was unpacking the endpoints of the range into a naive BETWEEN
check, ranges with open ends (i.e. non-inclusive) were not honored in
the final output.

Adding a range inclusion check on the JOIN fixes the issue. Added a
new test query to verify the correct behavior.
@jasonmp85 jasonmp85 merged commit b8a3119 into main Jun 5, 2024
5 checks passed
@jasonmp85 jasonmp85 deleted the fix_open_ranges branch June 5, 2024 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

date_bin_table() treats exclusive time range boundaries as inclusive
2 participants