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.
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.