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](inverted index) fix array inverted index error match result when doing schema change add index #16839

Merged
merged 1 commit into from
Feb 17, 2023

Conversation

airborne12
Copy link
Member

Proposed changes

Issue Number: close #16838

Problem summary

There is a bug in inverted_index_writer when adding multiple lines array values' index.
This problem can cause error result when doing schema change adding index.

Checklist(Required)

  • Does it affect the original behavior
  • Has unit tests been added
  • Has document been added or modified
  • Does it need to update dependencies
  • Is this PR support rollback (If NO, please explain WHY)

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

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Contributor

@Tanya-W Tanya-W left a comment

Choose a reason for hiding this comment

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

LGTM

@hello-stephen
Copy link
Contributor

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 35.74 seconds
stream load tsv: 474 seconds loaded 74807831229 Bytes, about 150 MB/s
stream load json: 37 seconds loaded 2358488459 Bytes, about 60 MB/s
stream load orc: 68 seconds loaded 1101869774 Bytes, about 15 MB/s
stream load parquet: 29 seconds loaded 861443392 Bytes, about 28 MB/s
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230216130003_clickbench_pr_98108.html

Copy link
Contributor

@qidaye qidaye left a comment

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 Feb 17, 2023
@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@yiguolei yiguolei merged commit 1a9eefe into apache:master Feb 17, 2023
yagagagaga pushed a commit to yagagagaga/doris that referenced this pull request Mar 9, 2023
…n doing schema change add index (apache#16839)

There is a bug in inverted_index_writer when adding multiple lines array values' index.
This problem can cause error result when doing schema change adding index.
SWJTU-ZhangLei pushed a commit to SWJTU-ZhangLei/incubator-doris that referenced this pull request Jul 25, 2023
…o fix inverted index issues (apache#1425)

* [Fix](inverted index) fix add nulls bug for inverted fulltext index (apache#16078)
    We found a problem with inverted index when parser=english,
    if there were nulls in columns when flushing inverted index for them, it can cause CLucene throwing an exception.
* [fix](regression test) fix test_array_index.groovy without 'order by' lead to result mismatch (apache#16575)
* [fix](inverted index) fix array type inverted index query error (apache#16582)
* [Fix](inverted index) fix array inverted index error match result when doing schema change add index (apache#16839)
    There is a bug in inverted_index_writer when adding multiple lines array values' index.
    This problem can cause error result when doing schema change adding index.

-----------

commit 1a9eefe
Author: airborne12 <[airborne08@gmail.com](mailto:airborne08@gmail.com)>
Date:   Fri Feb 17 11:50:39 2023 +0800

    [Fix](inverted index) fix array inverted index error match result when doing schema change add index (apache#16839)


commit ad14174
Author: YueW <[45946325+Tanya-W@users.noreply.github.com](mailto:45946325+Tanya-W@users.noreply.github.com)>
Date:   Fri Feb 10 17:57:15 2023 +0800

    [fix](inverted index) fix array type inverted index query error (apache#16582)


commit e682991
Author: YueW <[45946325+Tanya-W@users.noreply.github.com](mailto:45946325+Tanya-W@users.noreply.github.com)>
Date:   Fri Feb 10 08:53:22 2023 +0800

    [fix](regression test) fix test_array_index.groovy without 'order by' lead to result mismatch (apache#16575)


commit 69a3ecf
Author: airborne12 <[airborne08@gmail.com](mailto:airborne08@gmail.com)>
Date:   Thu Jan 19 21:21:44 2023 +0800

    [Fix](inverted index) fix add nulls bug for inverted fulltext index (apache#16078)

---------

Co-authored-by: airborne12 <airborne08@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by one committer. reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug](inverted index) searching inverted index of numeric array column returns error result
5 participants