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

Fix storage index #2828

Closed
wants to merge 3 commits into from
Closed

Conversation

cangfengzhs
Copy link
Contributor

@cangfengzhs cangfengzhs commented Sep 9, 2021

  1. modify plan that contain filter.Filter node's input must be vertex/edge node install of scan node.
  2. Fix some error in index unit test.

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

@@ -144,26 +150,22 @@ class IndexOutputNode final : public RelNode<T> {
ret = vertexRowsFromData(data);
break;
}
default:
assert(false);
Copy link
Contributor

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();
});
Copy link
Contributor

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());

Copy link
Contributor Author

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

@cangfengzhs cangfengzhs marked this pull request as ready for review September 13, 2021 02:22
@cangfengzhs cangfengzhs requested review from a team and yixinglu September 13, 2021 02:22
@Sophie-Xie Sophie-Xie requested review from critical27 and removed request for a team September 16, 2021 05:16
@Sophie-Xie Sophie-Xie modified the milestone: v2.6.0 Sep 27, 2021
@cangfengzhs
Copy link
Contributor Author

This bug has been fixed in #3196

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.

3 participants