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): avoid violating the assumption of U+ after U- in hash join & add checker #1811

Merged
merged 9 commits into from
Apr 13, 2022

Conversation

BugenZhao
Copy link
Member

@BugenZhao BugenZhao commented Apr 13, 2022

What's changed and what's your intention?

When there're multiple rows matched with a single UpdateDelete, the hash join executor will yield multiple continuous UpdateDeletes, which violates the assumption of U+ after U- used by Merge, Filter and so on. One can simply reproduce this in tpch q17, q18 with rearranged chain in #1556 since it introduces more barriers than before.

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)

Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
}

#[async_trait]
impl super::DebugExecutor for UpdateCheckExecutor {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we merge all debug executors into one? The backtrace would be disaster...

Copy link
Member Author

Choose a reason for hiding this comment

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

Next time for sure!

@skyzh
Copy link
Contributor

skyzh commented Apr 13, 2022

also test failed

Copy link
Contributor

@MrCroxx MrCroxx left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Bugen Zhao <i@bugenzhao.com>
@codecov
Copy link

codecov bot commented Apr 13, 2022

Codecov Report

Merging #1811 (d7c6383) into main (1c75cc3) will increase coverage by 0.02%.
The diff coverage is 88.29%.

@@            Coverage Diff             @@
##             main    #1811      +/-   ##
==========================================
+ Coverage   71.33%   71.35%   +0.02%     
==========================================
  Files         605      606       +1     
  Lines       79168    79261      +93     
==========================================
+ Hits        56475    56558      +83     
- Misses      22693    22703      +10     
Flag Coverage Δ
rust 71.35% <88.29%> (+0.02%) ⬆️

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

Impacted Files Coverage Δ
src/stream/src/executor/debug/mod.rs 28.57% <ø> (ø)
src/stream/src/executor/hash_join.rs 93.28% <83.33%> (+0.01%) ⬆️
src/stream/src/executor/debug/update_check.rs 88.50% <88.50%> (ø)
src/stream/src/task/stream_manager.rs 52.45% <100.00%> (+0.14%) ⬆️
.../src/executor/managed_state/aggregation/extreme.rs 89.89% <0.00%> (-0.27%) ⬇️
src/connector/src/filesystem/file_common.rs 80.88% <0.00%> (+0.44%) ⬆️
src/common/src/array/stream_chunk_iter.rs 85.18% <0.00%> (+3.70%) ⬆️

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

@BugenZhao BugenZhao enabled auto-merge (squash) April 13, 2022 08:12
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.

streaming: ensure U+ U- appears in pairs
4 participants