Skip to content

[Vectorized][Bug] fix get wrong result when select random column && fix get wrong has_null_tag - #7728

Merged
HappenLee merged 3 commits into
apache:vectorizedfrom
BiteTheDDDDt:fix_agg_reader_0112
Jan 12, 2022
Merged

HappenLee merged 3 commits into
apache:vectorizedfrom
BiteTheDDDDt:fix_agg_reader_0112

Conversation

@BiteTheDDDDt

Copy link
Copy Markdown
Contributor

Proposed changes

Issue Number: close #7727

Problem Summary:

Describe the overview of changes.

Checklist(Requried)

  1. Does it affect the original behavior: (Yes/No/I Don't know)
  2. Has unit tests been added: (Yes/No/No Need)
  3. Has document been added or modified: (Yes/No/No Need)
  4. Does it need to update dependencies: (Yes/No)
  5. Are there any changes that cannot be rolled back: (Yes/No)

Further comments

If this is a relatively large or complex change, kick off the discussion at [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...

@spaces-X

Copy link
Copy Markdown
Contributor

the same issue occurred to me

LGTM

Comment thread be/src/vec/olap/block_reader.cpp Outdated
for (auto idx : _agg_columns_idx) {
FieldAggregationMethod agg_method = tablet_schema.column(idx).aggregation();
FieldAggregationMethod agg_method =
tablet_schema.column(_real_columns_idx[idx]).aggregation();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

_real_columns_idx[idx]
can be replaced by
read_params.origin_return_columns->at(_return_columns_loc[idx])

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Okay,I modified this.

@BiteTheDDDDt BiteTheDDDDt changed the title [Vectorized][Bug] fix get wrong result when select random column [Vectorized][Bug] fix get wrong result when select random column && fix get wrong has_null_tag Jan 12, 2022
@zuochunwei

Copy link
Copy Markdown
Contributor

LGTM

@HappenLee
HappenLee merged commit 1ac2205 into apache:vectorized Jan 12, 2022
HappenLee pushed a commit to HappenLee/incubator-doris that referenced this pull request Jan 13, 2022
HappenLee pushed a commit to HappenLee/incubator-doris that referenced this pull request Jan 13, 2022
HappenLee pushed a commit that referenced this pull request Jan 17, 2022
@BiteTheDDDDt
BiteTheDDDDt deleted the fix_agg_reader_0112 branch January 20, 2025 06:53
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.

4 participants