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

[BugFix]streamvbyte decode should use RawVectorPad16 to correctly use avx #13062

Merged
merged 4 commits into from
Nov 11, 2022

Conversation

fzhedu
Copy link
Contributor

@fzhedu fzhedu commented Nov 7, 2022

Signed-off-by: fzhedu fzhedu@gmail.com

What type of PR is this:

  • BugFix
  • Feature
  • Enhancement
  • Refactor
  • UT
  • Doc
  • Tool

Which issues of this PR fixes :

Fixes #https://github.com/StarRocks/StarRocksBenchmark/issues/273

Problem Summary(Required) :

fast-pack/streamvbyte#44 fix a error that streamvbyte's decode may read up to 16 extra bytes from the input (beyond the actual compressed data). Thus the users of this library, for safety, should ensure that there is allocated data 16 bytes beyond the compressed data.

SR can use RawVectorPad16 to allocate vector with extra 16 bytes. So this PR introduces make_room_pad16 to make room for decoding integers that encoded by streamvbyte.

by the way, refactor some codes.

Checklist:

  • I have added test cases for my bug fix or my new feature (because this error is hard to be reporduced, so hard to constuct a test case.)
  • This pr will affect users' behaviors
  • This pr needs user documentation (for new or modified features or behaviors)
    • I have added documentation for my new feature or new function

Signed-off-by: fzhedu <fzhedu@gmail.com>
kangkaisen
kangkaisen previously approved these changes Nov 7, 2022
murphyatwork
murphyatwork previously approved these changes Nov 8, 2022
@murphyatwork murphyatwork enabled auto-merge (squash) November 8, 2022 00:11
Signed-off-by: fzhedu <fzhedu@gmail.com>
auto-merge was automatically disabled November 8, 2022 03:30

Head branch was pushed to by a user without write access

@fzhedu fzhedu dismissed stale reviews from murphyatwork and kangkaisen via 7159470 November 8, 2022 03:30
Signed-off-by: fzhedu <fzhedu@gmail.com>
@murphyatwork murphyatwork enabled auto-merge (squash) November 8, 2022 06:32
@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 8, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.7% 0.7% Duplication

@fzhedu
Copy link
Contributor Author

fzhedu commented Nov 8, 2022

run starrocks_admit_test

1 similar comment
@wangruin
Copy link
Contributor

run starrocks_admit_test

@wanpengfei-git wanpengfei-git merged commit 2959bdd into StarRocks:main Nov 11, 2022
fzhedu added a commit to fzhedu/starrocks that referenced this pull request Nov 15, 2022
@fzhedu fzhedu deleted the encodeBug branch January 4, 2023 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants