Commits


sgilmore10 authored and GitHub committed c0dd99f3fb4
GH-36359: [MATLAB] Add support for Timestamp arrays to RecordBatch (#36361) ### Rationale for this change Now that we have a `TimestampArray` class in MATLAB, we should add support for `TimestampArray` columns in `RecordBatch`. ### What changes are included in this PR? You can now create a `RecordBatch` with a `TimestampArray` column: ```matlab >> Date = datetime(2023, 6, 28) + days(0:2)'; >> DayNumber = weekday(Date); >> t = table(Date, DayNumber) t = 3×2 table Date DayNumber ___________ _________ 28-Jun-2023 4 29-Jun-2023 5 30-Jun-2023 6 >> rb = arrow.tabular.RecordBatch(t) rb = Date: [ 2023-06-28 00:00:00.000000, 2023-06-29 00:00:00.000000, 2023-06-30 00:00:00.000000 ] DayNumber: [ 4, 5, 6 ] ``` ### Are these changes tested? Yes, the `SupportedTypes` unit test in `tRecordBatch.m` was updated to verify we support creating record batches with timestamp data. ### Are there any user-facing changes? 1. Users can create record batches with timestamp data now. * Closes: #36359 Authored-by: Sarah Gilmore <sgilmore@mathworks.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>