Commits


Kevin Gurney authored and GitHub committed 0f73be11778
GH-37229: [MATLAB] Add `arrow.type.Date32Type` class and `arrow.date32` construction function (#37348) ### Rationale for this change In support of adding `arrow.array.Date32Array`, this pull request adds a new `arrow.type.Date32Type` class and associated `arrow.date32` construction function to the MATLAB interface. ### What changes are included in this PR? 1. New `arrow.type.Date32Type` class. 2. New `arrow.date32` construction function that returns an `arrow.type.Date32Type` instance. 3. New `arrow.type.ID.Date32` type enumeration value. 4. Added an abstract `arrow.type.DateType` class which `arrow.type.Date32Type` inherits from. `arrow.type.Date64Type` will also inherit from this class to share the `DateUnit` property. This mirrors the implementation of the `Time32Type` and `Time64Type` classes inheriting from an abstract `arrow.type.TimeType` class to share the `TimeUnit` property. **Example** ```matlab >> type = arrow.date32() type = Date32Type with properties: ID: Date32 DateUnit: Day ``` ### Are these changes tested? Yes. 1. Added a new `tDate32Type` test class. 2. Updated the `tID` test class to include `arrow.type.ID.Date32`. ### Are there any user-facing changes? Yes. 1. There is a new public `arrow.type.Date32Type` class. 2. There is a new public `arrow.date32` construction function. 3. There is a new `arrow.type.ID.Date32` type enumeration value. ### Future Directions 1. #37230 2. Add `arrow.array.Date32Array` class. 3. Add `arrow.array.Date64Array` class. * Closes: #37229 Lead-authored-by: Kevin Gurney <kgurney@mathworks.com> Co-authored-by: Sarah Gilmore <sgilmore@mathworks.com> Signed-off-by: Kevin Gurney <kgurney@mathworks.com>