kevingurney opened a new pull request, #37289:
URL: https://github.com/apache/arrow/pull/37289

   ### Rationale for this change
   
   To mirror the 
[`arrow.internal.validate.temporal.timeUnit`](https://github.com/apache/arrow/blob/main/matlab/src/matlab/%2Barrow/%2Binternal/%2Bvalidate/%2Btemporal/timeUnit.m)
 helper function added in #37250, this pull request adds an 
`arrow.internal.validate.temporal.dateUnit` helper function.
   
   This helper function can be used to simplify the implementation of 
`arrow.type.Date32Type` and `arrow.type.Date64Type`.
   
   ### What changes are included in this PR?
   
   1. Added a new helper function `arrow.internal.validate.temporal.dateUnit`.
   2. Updated comments and variable names in 
`arrow.internal.validate.temporal.timeUnit` for consistency with 
`arrow.internal.validate.temporal.dateUnit` and to reflect planned changes to 
Arrow type class hierarchy:
   
       *  `TimeType` and `DateType` inherit from `TemporalType`
       * `Time32Type` and `Time64Type` inherit from `TimeType`
       * `Date32Type` and `Date64Type` inherit from `DateType`
   
   ### Are these changes tested?
   
   Yes.
   
   1. Added new test class `tDateUnit`.
   5. Updated existing test class `tTimeUnit` for consistency with new 
`tDateUnit` test class.
   
   ### Are there any user-facing changes?
   
   No.
   
   `arrow.internal.validate.temporal.dateUnit` is an internal helper function.


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