sgilmore10 opened a new issue, #37340:
URL: https://github.com/apache/arrow/issues/37340
### Describe the bug, including details regarding any error messages,
version, and platform.
The `column(index)` method of `arrow.tabular.RecordBatch` errors if `index`
refers to a `arrow.array.Time32Array` column.
```matlab
>> string = arrow.array(["A", "B", "C"]);
>> time32 = arrow.array.Time32Array.fromMATLAB(seconds(1:3));
>> rb = arrow.tabular.RecordBatch.fromArrays(string, time32,
ColumnNames=["String", "Time32"])
rb =
String: [
"A",
"B",
"C"
]
Time32: [
00:00:01,
00:00:02,
00:00:03
]
>> time32Column = rb.column(2)
Error using .
Unsupported DataType: time32[s]
Error in arrow.tabular.RecordBatch/column (line 63)
[proxyID, typeID] = obj.Proxy.getColumnByIndex(args);
```
`column(index)` is throwing this error because the case for `Time32` was not
added to `arrow::matlab::array::proxy::wrap(arrowArray)` in #37315.
`column(index)` calls this function to create proxy objects around existing
arrow arrays.existing arrow arrays. Adding the case for `Time32` will resolve
this bug.
### Component(s)
MATLAB
--
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]