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

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 [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...

@morningman morningman 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.

@github-actions github-actions Bot added the kind/docs Categorizes issue or PR as related to documentation. label May 6, 2022
@Gabriel39
Gabriel39 force-pushed the fix_vectorized_compaction branch from 2492b15 to 6a94c6e Compare May 6, 2022 04:32
@Gabriel39
Gabriel39 force-pushed the fix_vectorized_compaction branch from 6a94c6e to 7555453 Compare May 6, 2022 04:36
@Gabriel39
Gabriel39 requested a review from HappenLee May 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
Gabriel39 force-pushed the fix_vectorized_compaction branch from 2986b57 to f80150d Compare May 6, 2022 06:04
HappenLee
HappenLee previously approved these changes May 6, 2022

@HappenLee HappenLee 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-actions github-actions Bot added the approved Indicates a PR has been approved by one committer. label May 6, 2022
@github-actions

github-actions Bot commented May 6, 2022

Copy link
Copy Markdown
Contributor

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

@github-actions

github-actions Bot commented May 6, 2022

Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

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

@yiguolei yiguolei 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:master May 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 free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/compact Issues or PRs related to the compact area/vectorization dev/backlog waiting to be merged in future dev branch kind/docs Categorizes 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