Commits


Yuhong Guo authored and Robert Nishihara committed ce8bc4e13fd
ARROW-3555: [Plasma] Unify plasma client get function using metadata. Sometimes, it is very hard for the data consumer to know whether an object is a buffer or other types of object. If we use `try-catch` statement to catch the pyarrow deserialization exception and then using `plasma_client.get_buffer`, the code is not clean. As discussed with @robertnishihara , we may leverage the metadata which is not used at all to mark the buffer data. Furthermore, this will avoid output `None` when the object is actually not available, which is showed in the test. In the client of other language, corresponding change would be easy. Author: Yuhong Guo <yuhong.gyh@antfin.com> Author: Robert Nishihara <robertnishihara@gmail.com> Closes #2788 from guoyuhong/plasmaBytes and squashes the following commits: 4adbd17 <Robert Nishihara> Update _plasma.pyx ea75fb4 <Yuhong Guo> Fix test error fbb48ea <Yuhong Guo> Try to move get_raw_buffer to unified get_buffers 0d7ef1d <Yuhong Guo> lint a7041df <Yuhong Guo> Fix test failures 47fb44e <Yuhong Guo> Add metadata support for plasma.