andishgar opened a new issue, #47613:
URL: https://github.com/apache/arrow/issues/47613

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   In the following schema file, it is assumed that there is a single type for 
all `indptr` buffers and another single type for all `indices` buffers. 
However, in the C++ implementation, each `indptr` and `indices` buffer can have 
its own type.
   
   **Schema files**
   
[https://github.com/apache/arrow/blob/d803afcc43f5d132506318fd9e162d33b2c3d4cd/format/SparseTensor.fbs#L160](https://github.com/apache/arrow/blob/d803afcc43f5d132506318fd9e162d33b2c3d4cd/format/SparseTensor.fbs#L160)
   
[https://github.com/apache/arrow/blob/d803afcc43f5d132506318fd9e162d33b2c3d4cd/format/SparseTensor.fbs#L179](https://github.com/apache/arrow/blob/d803afcc43f5d132506318fd9e162d33b2c3d4cd/format/SparseTensor.fbs#L179)
   
   **C++ implementation**
   Note that each tensor is associated with its own type:
   
[https://github.com/apache/arrow/blob/d803afcc43f5d132506318fd9e162d33b2c3d4cd/cpp/src/arrow/sparse\_tensor.h#L445-L447](https://github.com/apache/arrow/blob/d803afcc43f5d132506318fd9e162d33b2c3d4cd/cpp/src/arrow/sparse_tensor.h#L445-L447)
   
   In the C++ IPC implementation, however, the type of the first `indices` and 
`indptr` buffer is generalized to all:
   
[https://github.com/apache/arrow/blob/d803afcc43f5d132506318fd9e162d33b2c3d4cd/cpp/src/arrow/ipc/metadata\_internal.cc#L1152-L1153](https://github.com/apache/arrow/blob/d803afcc43f5d132506318fd9e162d33b2c3d4cd/cpp/src/arrow/ipc/metadata_internal.cc#L1152-L1153)
   
[https://github.com/apache/arrow/blob/d803afcc43f5d132506318fd9e162d33b2c3d4cd/cpp/src/arrow/ipc/metadata\_internal.cc#L1158-L1159](https://github.com/apache/arrow/blob/d803afcc43f5d132506318fd9e162d33b2c3d4cd/cpp/src/arrow/ipc/metadata_internal.cc#L1158-L1159)
   
   ### Component(s)
   
   C++, Documentation, Other


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