-
Notifications
You must be signed in to change notification settings - Fork 510
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
Feature/test mutually exclusive ranges #166
Conversation
@drewbanin I'm not going to be able to look at this for like another week. Any chance you're able to help out here? Sorry, I know I'm useless right now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is groovy! Couple of small comments, but largely LGTM.
I think the logic in the where
clause could benefit from additional attention to better handle cases when lower_bound_column
or upper_bound_column
are errantly null. Keen to discuss!
Also: That CI issue should be resolved - the tests should run on your next push
), | ||
|
||
validation_errors as ( | ||
-- we want to return records where our assumptions are NOT true, so we'll use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this correct? It seems like you did the opposite of this in the code below! I think it would make sense to put one big not
around the entire predicate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rewrote this to make it cleaner
A few other things:
example of
example of
example of
There's probably a better way to express that, not sure if it's worth implementing. I can imagine ranges (especially timestamp ones) where you actually want things to not overlap so you don't have a fan out in any downstream joins, but 🤷♀
|
f827cb3
to
ee0c4d7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks excellent - ship it!
b2ee6cf
to
ee0c4d7
Compare
Test failing because of this issue. Will wait for that fix rather than working around the issue.