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


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