You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2023/01/11 16:09:32 UTC
[GitHub] [arrow] pitrou commented on a diff in pull request #15182: GH-15074: [Parquet][C++] change 16-bit page_ordinal to 32-bit
pitrou commented on code in PR #15182:
URL: https://github.com/apache/arrow/pull/15182#discussion_r1067182060
##########
cpp/src/parquet/encryption/encryption_internal.cc:
##########
@@ -599,7 +599,13 @@ static std::string ShortToBytesLe(int16_t input) {
std::string CreateModuleAad(const std::string& file_aad, int8_t module_type,
int16_t row_group_ordinal, int16_t column_ordinal,
- int16_t page_ordinal) {
+ int32_t page_ordinal) {
+ if (ARROW_PREDICT_FALSE(page_ordinal > std::numeric_limits<int16_t>::max())) {
Review Comment:
@mapleFU This looks ok to me!
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org