Skip to content

Conversation

@kosiew
Copy link
Owner

@kosiew kosiew commented Jun 23, 2025

Which issue does this PR close?

  • Closes #.

Rationale for this change

The Python ParquetWriterOptions object did not accept a compression_level
argument, causing tests to fail when specifying this option.

What changes are included in this PR?

  • Added optional compression_level parameter to ParquetWriterOptions.__init__
    that appends the level to the compression string.
  • Removed unused dataclass import.

Are these changes tested?

  • pytest python/tests/test_dataframe.py::test_write_parquet_options python/tests/test_dataframe.py::test_write_parquet_options_error -v

Are there any user-facing changes?

  • Users can now supply compression_level when creating ParquetWriterOptions.

https://chatgpt.com/codex/tasks/task_e_685949bdda88832486ee0f85c4fc4793

@kosiew kosiew merged commit 4b3298c into parquet-1162a Jun 23, 2025
0 of 2 checks passed
@kosiew kosiew deleted the codex/fix-parquetwriteroptions-initialization-error branch July 16, 2025 04:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants