-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix storage index #2828
Fix storage index #2828
Conversation
src/storage/exec/IndexOutputNode.h
Outdated
@@ -144,26 +150,22 @@ class IndexOutputNode final : public RelNode<T> { | |||
ret = vertexRowsFromData(data); | |||
break; | |||
} | |||
default: | |||
assert(false); |
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.
replace the assert
with LOG(FATAL)
if (v.isStr()) { | ||
auto iter = std::find_if(fields_.begin(), fields_.end(), [&col](const auto& field) { | ||
return col == field.get_name(); | ||
}); |
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.
CHECK whether the iter is valid: DCHECK(iter != xx.end());
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.
CHECK whether the iter is valid:
DCHECK(iter != xx.end());
Just share the discussion details, it is not finished
2. fix LookupIndexTest 3. remove buildPlanWithFilter
02fd382
to
f881c1f
Compare
This bug has been fixed in #3196 |
This can only solve the problem of storing and returning truncated data. It cannot deal with the problem of incorrect data set returned due to index truncation. Later, a detailed design for the processing of truncated indexes will be given for everyone to discuss