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 string type column zone map bug #2144

Merged

Conversation

kangpinghuang
Copy link
Contributor

@kangpinghuang kangpinghuang commented Nov 6, 2019

string type column's zone map of segment is wrong and segments are filtered incorrectly.
Issue: #2143

@imay
Copy link
Contributor

imay commented Nov 6, 2019

@kangpinghuang
better to relate it to an issue

@@ -99,7 +99,7 @@ class Schema {
~Schema();

const std::vector<Field*>& columns() const { return _cols; }
const Field* column(ColumnId cid) const { return _cols[cid]; }
Field* column(ColumnId cid) const { return _cols[cid]; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we return a non-const Field? I think this field will be not changed.

Copy link
Contributor

@imay imay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@imay imay merged commit cfc98e3 into apache:master Nov 7, 2019
@kangpinghuang kangpinghuang deleted the fix_string_type_column_zone_map_bug branch November 7, 2019 08:57
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.

None yet

2 participants