mapleFU commented on issue #38877:
URL: https://github.com/apache/arrow/issues/38877#issuecomment-1825881619

   ```diff
     EncodedStatistics GetChunkStatistics() override {
       EncodedStatistics result;
       if (chunk_statistics_) result = chunk_statistics_->Encode();
   +  if (current_dict_encoder_ != nullptr && !fallback_) {
   +      
chunk_statistics_->SetDistinctCount(current_dict_encoder_->num_entries());
   +   }
       return result;
     }
   ```
   
   A likely implementation might be the code above ( `SetDistinctCount` doesn't 
exists in current code )
   
   Also maybe we can find whether `parquet-mr` and `arrow-rs/parquet` writing 
the `distinct_count` and follow the style of them


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