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: Cloud support for NDJSON #17717

Merged
merged 2 commits into from
Jul 19, 2024
Merged

Conversation

nameexhaustion
Copy link
Collaborator

It is quite a common format, especially in LLM datasets

@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 Jul 19, 2024
Copy link

codecov bot commented Jul 19, 2024

Codecov Report

Attention: Patch coverage is 85.03937% with 19 lines in your changes missing coverage. Please review.

Project coverage is 80.42%. Comparing base (c4738d2) to head (b8979ac).
Report is 1 commits behind head on main.

Files Patch % Lines
crates/polars-plan/src/plans/file_scan.rs 38.46% 8 Missing ⚠️
crates/polars-lazy/src/scan/ndjson.rs 69.23% 4 Missing ⚠️
...tes/polars-mem-engine/src/executors/scan/ndjson.rs 88.23% 2 Missing ⚠️
py-polars/polars/io/ndjson.py 50.00% 1 Missing and 1 partial ⚠️
py-polars/src/lazyframe/mod.rs 89.47% 2 Missing ⚠️
py-polars/src/lazyframe/visitor/nodes.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #17717      +/-   ##
==========================================
+ Coverage   80.39%   80.42%   +0.03%     
==========================================
  Files        1501     1501              
  Lines      196758   196830      +72     
  Branches     2793     2794       +1     
==========================================
+ Hits       158178   158306     +128     
+ Misses      38067    38010      -57     
- Partials      513      514       +1     

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

@@ -344,7 +344,8 @@ pub(crate) fn into_py(py: Python<'_>, plan: &IR) -> PyResult<PyObject> {
#[cfg(feature = "ipc")]
FileScan::Ipc { .. } => return Err(PyNotImplementedError::new_err("ipc scan")),
#[cfg(feature = "json")]
FileScan::NDJson { options } => {
FileScan::NDJson { options, .. } => {
// TODO: Also pass cloud_options
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think this is for the GPU engine, this probably needs updates on that side as well so I've left a todo

@ritchie46 ritchie46 merged commit 81846f0 into pola-rs:main Jul 19, 2024
27 checks passed
@nameexhaustion nameexhaustion deleted the ndjson-cloud branch July 19, 2024 12:23
@c-peters c-peters added the accepted Ready for implementation label Jul 22, 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.

3 participants