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

feat: Add IPC source node for new streaming engine #19454

Merged
merged 15 commits into from
Nov 13, 2024

Conversation

coastalwhite
Copy link
Collaborator

No description provided.

@github-actions github-actions bot added enhancement New feature or an improvement of an existing feature python Related to Python Polars rust Related to Rust Polars labels Oct 25, 2024
Copy link

codecov bot commented Oct 25, 2024

Codecov Report

Attention: Patch coverage is 7.88955% with 467 lines in your changes missing coverage. Please review.

Project coverage is 79.68%. Comparing base (6b0a906) to head (f2df12f).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
crates/polars-stream/src/nodes/io_sources/ipc.rs 0.00% 381 Missing ⚠️
crates/polars-arrow/src/io/ipc/read/reader.rs 25.86% 43 Missing ⚠️
crates/polars-core/src/frame/mod.rs 0.00% 20 Missing ⚠️
crates/polars-core/src/frame/upstream_traits.rs 0.00% 16 Missing ⚠️
crates/polars-arrow/src/record_batch.rs 50.00% 5 Missing ⚠️
crates/polars-arrow/src/io/ipc/read/stream.rs 83.33% 1 Missing ⚠️
crates/polars-stream/src/physical_plan/lower_ir.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #19454      +/-   ##
==========================================
- Coverage   79.86%   79.68%   -0.19%     
==========================================
  Files        1537     1538       +1     
  Lines      211923   212398     +475     
  Branches     2446     2446              
==========================================
- Hits       169249   169241       -8     
- Misses      42120    42603     +483     
  Partials      554      554              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@coastalwhite coastalwhite marked this pull request as ready for review October 28, 2024 08:52
crates/polars-stream/src/nodes/io_sources/ipc.rs Outdated Show resolved Hide resolved
crates/polars-stream/src/nodes/io_sources/ipc.rs Outdated Show resolved Hide resolved
@orlp
Copy link
Collaborator

orlp commented Nov 5, 2024

@coastalwhite There's a failure after 2 hours... a deadlock?

}
for i in 0..df.height().div_ceil(max_morsel_size) {
let morsel = df.slice((i * max_morsel_size) as i64, max_morsel_size);
let seq = MorselSeq::new(seq + i as u64);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should initialize a MorselSeq at the start and use MorselSeq::successor() to increment this (it doesn't increment by 1)

@ritchie46 ritchie46 merged commit 8cb7839 into pola-rs:main Nov 13, 2024
24 of 25 checks passed
@coastalwhite coastalwhite deleted the feat/new-streaming-ipc-source branch November 13, 2024 09:10
@c-peters c-peters added the accepted Ready for implementation label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Ready for implementation enhancement New feature or an improvement of an existing feature python Related to Python Polars rust Related to Rust Polars
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants