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(streaming): inappropriate serialization for JoinRow #2398

Merged
merged 1 commit into from
May 10, 2022

Conversation

yuhao-su
Copy link
Contributor

@yuhao-su yuhao-su commented May 9, 2022

What's changed and what's your intention?

  • The previous serialization does not match the deserialization, causing bugs.

Checklist

  • I have written necessary docs and comments
  • I have added necessary unit tests and integration tests

Refer to a related PR or issue link (optional)

@codecov
Copy link

codecov bot commented May 9, 2022

Codecov Report

Merging #2398 (c8c9f24) into main (7b94dad) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #2398   +/-   ##
=======================================
  Coverage   71.36%   71.36%           
=======================================
  Files         680      680           
  Lines       86089    86088    -1     
=======================================
  Hits        61439    61439           
+ Misses      24650    24649    -1     
Flag Coverage Δ
rust 71.36% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/stream/src/executor/managed_state/join/mod.rs 70.41% <100.00%> (-0.18%) ⬇️
src/storage/src/hummock/local_version_manager.rs 89.85% <0.00%> (+0.15%) ⬆️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@yuhao-su yuhao-su enabled auto-merge (squash) May 9, 2022 18:33
vec.extend_from_slice(&serializer.into_inner());
let mut degree_buf: Vec<u8> = vec![];
degree_buf.put_u64_le(self.degree);
vec.extend_from_slice(&degree_buf);
Copy link
Contributor

Choose a reason for hiding this comment

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

vec.extend_from_slice(&self.degree.to_le_bytes()) should be enough?

Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

Copy link
Contributor

Choose a reason for hiding this comment

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

Emmm didnt notice the auto merge

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah sorry, will fix those later.

Copy link
Contributor

@BowenXiao1999 BowenXiao1999 left a comment

Choose a reason for hiding this comment

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

Rest LGTM

vec.extend_from_slice(&serializer.into_inner());
let mut degree_buf: Vec<u8> = vec![];
degree_buf.put_u64_le(self.degree);
vec.extend_from_slice(&degree_buf);
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

@yuhao-su yuhao-su merged commit 8934289 into main May 10, 2022
@yuhao-su yuhao-su deleted the fix_serialization_in_streaming_hash_join_state branch May 10, 2022 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/fix Bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants