Skip to content

[BUG][Vectorized] fix replace_if_not_null in vectorized compaction - #9376

Merged
yiguolei merged 7 commits into
apache:masterfrom
Gabriel39:fix_vectorized_compaction
May 7, 2022
Merged

[BUG][Vectorized] fix replace_if_not_null in vectorized compaction#9376
yiguolei merged 7 commits into
apache:masterfrom
Gabriel39:fix_vectorized_compaction

Conversation

@Gabriel39

Copy link
Copy Markdown
Contributor

Proposed changes

Issue Number: close#9374

Problem Summary:

Describe the overview of changes.

Checklist(Required)

  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 dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

Comment threadbe/src/vec/aggregate_functions/aggregate_function_window.h Outdated
@morningmanmorningman added area/compact Issues or PRs related to the compact dev/backlog waiting to be merged in future dev branch labels May 5, 2022
_default_value.reset();
_is_init = false;
_has_value = false;
if constexpr (init_with_null) {

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.

the logic only use in child class, should not do in parent.

Comment threadbe/src/vec/aggregate_functions/aggregate_function_window.h
@github-actionsgithub-actionsBot added the kind/docs Categorizes issue or PR as related to documentation. label May 6, 2022
@Gabriel39
Gabriel39force-pushed the fix_vectorized_compaction branch from 2492b15 to 6a94c6eCompareMay 6, 2022 04:32
@Gabriel39
Gabriel39force-pushed the fix_vectorized_compaction branch from 6a94c6e to 7555453CompareMay 6, 2022 04:36
@Gabriel39
Gabriel39 requested a review from HappenLeeMay 6, 2022 04:57
this->set_null_if_need();
frame_start = std::max<int64_t>(frame_start, partition_start);
frame_end = std::min<int64_t>(frame_end, partition_end);
if (const auto* nullable_column = check_and_get_column<ColumnNullable>(columns[0])) {

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.

use if constexpr to speed up the function

@Gabriel39
Gabriel39force-pushed the fix_vectorized_compaction branch from 2986b57 to f80150dCompareMay 6, 2022 06:04
HappenLee
HappenLee previously approved these changes May 6, 2022

@HappenLeeHappenLee left a comment

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.

LGTM

@github-actionsgithub-actionsBot added the approved Indicates a PR has been approved by one committer. label May 6, 2022
@github-actions

Copy link
Copy Markdown
Contributor

PR approved by at least one committer and no changes requested.

@github-actions

Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

@github-actionsgithub-actionsBot removed the approved Indicates a PR has been approved by one committer. label May 7, 2022

@yiguoleiyiguolei left a comment

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.

LGTM

@yiguolei
yiguolei merged commit 49890ce into apache:masterMay 7, 2022
starocean999 pushed a commit to starocean999/incubator-doris that referenced this pull request May 19, 2022
englefly pushed a commit to englefly/incubator-doris that referenced this pull request May 23, 2022
@Gabriel39
Gabriel39 deleted the fix_vectorized_compaction branch July 30, 2026 06:27
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/compactIssues or PRs related to the compactarea/vectorizationdev/backlogwaiting to be merged in future dev branchkind/docsCategorizes issue or PR as related to documentation.reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] replace_if_not_null not found in vectorized compaction

5 participants

@Gabriel39@BiteTheDDDDt@yiguolei@HappenLee@morningman