Skip to content

Commit

Permalink
throw for missing size
Browse files Browse the repository at this point in the history
  • Loading branch information
wgtmac committed Dec 17, 2024
1 parent 098b87e commit 32c9a9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cpp/src/parquet/size_statistics.cc
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ void SizeStatistics::Validate(const ColumnDescriptor* descr) const {
throw ParquetException("Unencoded byte array data bytes does not support " +
TypeToString(descr->physical_type()));
}
if (!unencoded_byte_array_data_bytes.has_value() &&
descr->physical_type() == Type::BYTE_ARRAY) {
throw ParquetException("Missing unencoded byte array data bytes");
}
}

void SizeStatistics::Reset() {
Expand Down

0 comments on commit 32c9a9e

Please sign in to comment.