Skip to content

Commit 2f25eeb

Browse files
committed
address review
1 parent 3854269 commit 2f25eeb

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎cpp/src/parquet/statistics.h‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ class TypedComparator : public Comparator {
7777

7878
/// \brief Compute maximum and minimum elements in a batch of
7979
/// elements without any nulls
80+
///
81+
/// For floating-point types with ColumnOrder::TYPE_DEFINED_ORDER, NaNs are
82+
/// ignored. With ColumnOrder::IEEE_754_TOTAL_ORDER, NaNs participate in the
83+
/// result. IEEE total-order bounds must not be written directly as Parquet
84+
/// statistics, which exclude NaNs when valid bounds exist.
8085
virtual std::pair<T, T> GetMinMax(const T* values, int64_t length) const = 0;
8186

8287
/// \brief Compute minimum and maximum elements from an Arrow array. Only
@@ -88,6 +93,11 @@ class TypedComparator : public Comparator {
8893
/// elements with accompanying bitmap indicating which elements are
8994
/// included (bit set) and excluded (bit not set)
9095
///
96+
/// For floating-point types with ColumnOrder::TYPE_DEFINED_ORDER, NaNs are
97+
/// ignored. With ColumnOrder::IEEE_754_TOTAL_ORDER, NaNs participate in the
98+
/// result. IEEE total-order bounds must not be written directly as Parquet
99+
/// statistics, which exclude NaNs when valid bounds exist.
100+
///
91101
/// \param[in] values the sequence of values
92102
/// \param[in] length the length of the sequence
93103
/// \param[in] valid_bits a bitmap indicating which elements are

0 commit comments

Comments
 (0)