You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by "Martin Tzvetanov Grigorov (Jira)" <ji...@apache.org> on 2024/08/15 19:52:00 UTC

[jira] [Resolved] (AVRO-4032) [Rust] Make it possible to set codec's compression level when supported

     [ https://issues.apache.org/jira/browse/AVRO-4032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Tzvetanov Grigorov resolved AVRO-4032.
---------------------------------------------
    Fix Version/s: 0.18.0
         Assignee: Martin Tzvetanov Grigorov
       Resolution: Fixed

> [Rust] Make it possible to set codec's compression level when supported
> -----------------------------------------------------------------------
>
>                 Key: AVRO-4032
>                 URL: https://issues.apache.org/jira/browse/AVRO-4032
>             Project: Apache Avro
>          Issue Type: Wish
>          Components: rust
>            Reporter: Marco Lugo
>            Assignee: Martin Tzvetanov Grigorov
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 0.18.0
>
>          Time Spent: 3.5h
>  Remaining Estimate: 0h
>
> Zstd level is always the default (i.e. 3). This is great for most cases but it'd be very convenient to be able to set a different level.
>  
> I was thinking that maybe the enum [here|https://docs.rs/apache-avro/latest/apache_avro/enum.Codec.html] could have another variant, something like `Zstandard(u8)` or even `Zstandard(ZstdLevel)` where ZstdLevel is an enum. Then if `Zstandard` is used it uses the default and if this newly proposed one is is used it takes into consideration the provided level. I lack context so there may be a good reason not to accept a different level or maybe a different way to do it.
>  
> If there's a preferred way of doing this, I am willing to open a PR with the changes.
>  
> Thank you,
> Marco



--
This message was sent by Atlassian Jira
(v8.20.10#820010)