kiszk commented on a change in pull request #7108:
URL: https://github.com/apache/arrow/pull/7108#discussion_r420860301
##########
File path: cpp/src/parquet/file_reader.cc
##########
@@ -160,6 +166,12 @@ class SerializedRowGroup : public RowGroupReader::Contents
{
throw ParquetException("RowGroup is noted as encrypted but no file
decryptor");
}
+ constexpr auto kEncryptedRowGroupsLimit = 32767;
+ if (i > kEncryptedRowGroupsLimit) {
+ throw ParquetException(
+ "Encrypted files cannot contain more than 32767 row groups;");
Review comment:
nit: is `;` necessary in `groups;`?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]