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

Add write_parquet to pylibcudf #17263

Open
wants to merge 2 commits into
base: branch-24.12
Choose a base branch
from

Conversation

mroeschke
Copy link
Contributor

Description

Broken off from #17252 since also replacing cudf Python's write_parquet usage would have made the PR fairly large.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@mroeschke mroeschke added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change pylibcudf Issues specific to the pylibcudf package labels Nov 7, 2024
@mroeschke mroeschke self-assigned this Nov 7, 2024
@mroeschke mroeschke requested a review from a team as a code owner November 7, 2024 02:17
@github-actions github-actions bot added the Python Affects Python cuDF API. label Nov 7, 2024
@pytest.mark.parametrize("max_page_size_bytes", [None, 100])
@pytest.mark.parametrize("max_page_size_rows", [None, 1])
@pytest.mark.parametrize("max_dictionary_size", [None, 100])
def test_write_parquet(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

  1. This test already generates 32k tests. Thoughts on if that's OK and if not which parameters are most important to exercise
  2. So far I'm just asserting that assert isinstance(result, plc.io.parquet.BufferArrayFromVector). I'm hoping that cudf Python can assert more specifics about the metadata result (given that I'm testing a lot of params here) but happy to assert something stronger if desired

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement / enhancement to an existing function non-breaking Non-breaking change pylibcudf Issues specific to the pylibcudf package Python Affects Python cuDF API.
Projects
Status: In Progress
Status: In Progress
Development

Successfully merging this pull request may close these issues.

1 participant