-
Notifications
You must be signed in to change notification settings - Fork 168
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
RCORE-2221 test to prove between node wrong behaviour over links #7940
Conversation
|
||
// this is not working with colkey not found and it using the | ||
// in between node. | ||
auto q1 = parent->query("child.int BETWEEN {0,100}"); |
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.
Apparently we are not following the links, when we do:
auto min_val = min->visit(drv, type_Int);
auto max_val = max->visit(drv, type_Int);
q.between(obj_prop->column_key(), min_val->get_mixed().get_int(), max_val->get_mixed().get_int());
return q;
const auto type = tmp->get_type(); | ||
if (type == type_Int || type == type_Timestamp) { | ||
if (obj_prop->links_exist()) { | ||
const auto& link_map = obj_prop->get_link_map(); |
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.
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 approach doesn't work because you are passing the destination column and the destination table, without accounting for the links along the way. The specialized between node doesn't handle links, so we can just fall back to a normal relational comparison below. I have opened #7965 to do it this way.
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.
Ok great! Probably we should have a test in core that tracks this, because if something is not working, some test should tell us!!! But again, thanks for spotting this.
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.
There is a test in #7965 which will catch this.
Pull Request Test Coverage Report for Build nicola.cabiddu_1886Details
💛 - Coveralls |
What, How & Why?
In Between node fix follow links.
Note: needs a changelog
☑️ ToDos
bindgen/spec.yml
, if public C++ API changed