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

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   The dictionary encoding can be inefficient for Parquet column data that has 
a lot of unique values.
   To mitigate this, parquet-java [implements 
fallback](https://github.com/apache/parquet-java/blob/apache-parquet-1.17.0/parquet-column/src/main/java/org/apache/parquet/column/values/fallback/FallbackValuesWriter.java)
 based on the evaluation of the size of plainly encoded data for the first data 
page versus its dictionary-based encoding: if compression is not achieved, the 
column encoder falls back to the plain encoding.
   
   **Describe the solution you'd like**
   Add an option to enable dictionary fallback decided on compression 
efficiency, with a possibility to extend it with other behaviors in the future.
   
   **Describe alternatives you've considered**
   Implement the heuristic without an option. Since the added computation has 
some cost, this may be undesirable for some applications. The new encoding 
behavior is also a substantial change, so it's better introduced through an 
option.
   


-- 
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