mapleFU commented on code in PR #34355:
URL: https://github.com/apache/arrow/pull/34355#discussion_r1150026872
##########
cpp/src/parquet/statistics.cc:
##########
@@ -495,9 +495,12 @@ class TypedStatisticsImpl : public TypedStatistics<DType> {
bool has_null_count, bool has_distinct_count,
MemoryPool* pool)
: TypedStatisticsImpl(descr, pool) {
TypedStatisticsImpl::IncrementNumValues(num_values);
+ // Currently, `has_null_count` argument is not used.
+ // Internal has_null_count_ would always be true.
Review Comment:
Sorry for make misunderstanding. NDV means num-different values. Load
statistics is introduced in `ColumnChunkMetaData`, and it's weird that:
1. Writer will never set ndv.
2. Reader should read ndv.
The behavior here is trickey
--
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]