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

Added tests with are writing into parquet files in memory for issue #… #15325

Merged
merged 1 commit into from
Mar 22, 2025

Conversation

pranavJibhakate
Copy link
Contributor

…15158

Which issue does this PR close?

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

)
.unwrap();

writer.write(&batch).unwrap();
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks @pranavJibhakate !

Would you be willing to add a test that the same data could be read back from the parquet file as well?

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree; I think the current code tests the re-exported Parquet functionalities, not touching the DataFusion-related code. Ideally, we should test the end-to-end Parquet reading process.

The process roughly looks like this:

  1. Create a in-memory object_store, and put the Parquet data you generated into the object_store.
  2. Register the object_store along with the path to the DataFusion.
  3. Run a SQL query from the DataFusion side to see if the results can be read back.

A loosely related test can be found here: https://github.com/XiangpengHao/parquet-viewer/blob/main/src/tests.rs#L9

Copy link
Contributor

Choose a reason for hiding this comment

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

I filed a ticket to track this work:

@alamb alamb merged commit 5ab23b5 into apache:main Mar 22, 2025
27 checks passed
@alamb
Copy link
Contributor

alamb commented Mar 22, 2025

Thanks again @pranavJibhakate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add test coverage for wasm32 + parquet build
3 participants