azecevic000 commented on code in PR #12483:
URL: https://github.com/apache/arrow-rs/pull/12483#discussion_r4801120182


##########
parquet/src/encodings/encoding/dict_encoder.rs:
##########
@@ -71,7 +81,11 @@ impl<T: DataType> Storage for KeyStorage<T> {
 /// (max bit width = 32), followed by the values encoded using RLE/Bit packed 
described
 /// above (with the given bit width).
 pub struct DictEncoder<T: DataType> {
-    interner: Interner<KeyStorage<T>>,
+    /// Created by the first non-empty `put`, so a column that gets no value
+    /// does not allocate the dedup table.
+    interner: Option<Interner<KeyStorage<T>>>,
+
+    type_length: usize,

Review Comment:
   nit: can you please add a comment that `type_length` is used for lazy 
initialization of `interner`



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