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 2021/12/31 03:05:59 UTC

[GitHub] [arrow] edponce edited a comment on pull request #12036: ARROW-15194: [C++] Combine ChunkedArray constructors

edponce edited a comment on pull request #12036:
URL: https://github.com/apache/arrow/pull/12036#issuecomment-1003249653


   @pitrou I noticed that [Python's `ChunkedArray` "constructor" performs the type/size check and validates that all chunks are of the same type](https://github.com/apache/arrow/blob/master/python/pyarrow/table.pxi#L529-L546). Basically, the same behavior as if going through `XXX::Make()`. And then it [invokes C++ constructor](https://github.com/apache/arrow/blob/master/python/pyarrow/table.pxi#L555) which in turn also performs the type/size checks.
   Why PyArrow performs so much error handling which can be captured in C++? Is this a design decision or a consequence of defensive programming while adding more functionality?


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