wgtmac commented on code in PR #35758:
URL: https://github.com/apache/arrow/pull/35758#discussion_r1205065841
##########
cpp/src/parquet/metadata.cc:
##########
@@ -1462,40 +1462,45 @@ class
ColumnChunkMetaDataBuilder::ColumnChunkMetaDataBuilderImpl {
column_chunk_->meta_data.__set_total_compressed_size(compressed_size);
std::vector<format::Encoding::type> thrift_encodings;
+ std::vector<format::PageEncodingStats> thrift_encoding_stats;
+ // Force Emplace encoding for RL/DL.
+ thrift_encodings.push_back(ToThrift(Encoding::RLE));
+ // Add dictionary page encoding stats
if (has_dictionary) {
-
thrift_encodings.push_back(ToThrift(properties_->dictionary_index_encoding()));
+ // For Parquet V1, Dictionary Data Page and Dictionary Index Page
encodings
+ // is PLAIN_DICTIONARY, but the actual DATA is PLAIN, so force adding
PLAIN.
Review Comment:
Yes, if `EncodingStats` exists it only prints it. Otherwise it prints the
encoding list.
--
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]