AlenkaF commented on issue #36388:
URL: https://github.com/apache/arrow/issues/36388#issuecomment-1619936505

   I agree the code should give an error when the result doesn't fit into an 
array.
   
   Arrow format represents arrays of length up to the maximum 32-bit signed 
integer:
   https://arrow.apache.org/docs/format/Columnar.html#array-lengths
   
   and `pyarrow.repeat` or `MakeArrayFromScalar` function in C++ returns an 
Array, not a ChunkedArray:
   
https://github.com/apache/arrow/blob/cd1ed18fd1e08912ea47b64edf55be9c046375c4/python/pyarrow/array.pxi#L426
   
https://github.com/apache/arrow/blob/cd1ed18fd1e08912ea47b64edf55be9c046375c4/r/src/scalar.cpp#L61
   
   If the length is exceeding the limit, it should raise an informative error 
on the C++ side.


-- 
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]

Reply via email to