sgilmore10 opened a new pull request, #36361:
URL: https://github.com/apache/arrow/pull/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.
   


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