waynexia opened a new issue, #3823:
URL: https://github.com/apache/arrow-rs/issues/3823

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   <!--
   A clear and concise description of what the problem is. Ex. I'm always 
frustrated when [...] 
   (This section helps Arrow developers understand the context and *why* for 
this feature, in addition to  the *what*)
   -->
   
   Currently we can set the encoding method for the entire writer (using 
[`set_encoding()`](https://docs.rs/parquet/34.0.0/parquet/file/properties/struct.WriterPropertiesBuilder.html#method.set_encoding))
 or for each column (using 
[`set_column_encoding()`](https://docs.rs/parquet/34.0.0/parquet/file/properties/struct.WriterPropertiesBuilder.html#method.set_column_encoding)).
 I'd like to propose another way that allows users to set preferred encoding 
method for each type. E.g., prefer PLAIN for float and DELTA_BINARY_PACKED for 
int64 etc.
   
   **Describe the solution you'd like**
   <!--
   A clear and concise description of what you want to happen.
   -->
   
   Add a new property that describes the preferred mapping. It can be something 
like 
   ```rust
   struct TypeEncoding {
     boolean: Option<Encoding>,
     int32: Option<Encoding>,
     // ...
   }
   ```
   
   For priority among all those ways, we can let the more concrete setting 
overwrites the more general one. I.e, column encoding properties > type 
encoding properties > global encoding.
   
   **Describe alternatives you've considered**
   <!--
   A clear and concise description of any alternative solutions or features 
you've considered.
   -->
   
   **Additional context**
   <!--
   Add any other context or screenshots about the feature request here.
   -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to