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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
