llama90 commented on issue #36388: URL: https://github.com/apache/arrow/issues/36388#issuecomment-1768834667
@AlenkaF Hello. I have taken an interest in this issue and upon review, I find some aspects to be ambiguous and would like to ask some questions. It appears that in order to avoid overflow in this issue, the following two scenarios need to be considered: 1. Initially, is the `repetition count`(e.g., `2**31 -1`) greater than `int32_t` or less than `0`? 2. Does the product of the `repeated value` (e.g., `?`) and `repetition count` trigger `MultiplyWithOverflow`? Moreover, it seems possible to allocate the `repetition count` within the `int64_t` range, but when calling the c++ function from python code, is there a type conversion happening, leading the user to discover an error related to `int32_t`? I wanted to test the cases exceeding `int32_t`, but I encountered an error like "mimalloc: warning: unable to allocate aligned OS memory directly, fall back to over-allocation (8598323200 bytes, address: 0x300800000, alignment: 67108864, commit: 1)" and was unable to proceed beyond this point. Considering these points, should the range for repeat size be restricted to `int32_t` or should it be limited to `int64_t`? -- 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]
