Skip to content

Regression: write_parquet no longer supports compression options #7433

Closed

Description

@andygrove

Describe the bug

After upgrading the DataFusion Python bindings to version 30, I saw some test failures for writing compressed Parquet files.

apache/datafusion-python#464 (comment)

It looks like this feature was removed from DataFusion in this commit. Note the comment // TODO implement options.

To Reproduce

Try writing a parquet file and specify a compression level in the writer properties:

        let writer_properties = WriterProperties::builder()
            .set_compression(compression_type)
            .build();

Expected behavior

The option should not be ignored.

Additional context

No response

Activity

  1. added
    bug
    on Aug 28, 2023
  2. devinjdangelo commented on Aug 28, 2023

    @devinjdangelo
    Contributor

    I am working on adding support back in for these options in #7390 and #7435. The API will still be slightly different after these PRs though, requiring an additional argument. Apologies for not flagging these breaking changes more clearly prior to the 30.0.0 release!

    I discussed a possible workaround in the meantime in #7423 to use SessionContext::write_parquet which still uses the previous write implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ Proxy