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

   ### Rationale for this change
   
   Add default comparators for more vector types to make algorithms easier to 
use and provide more consistency for Java compared to other languages.
   
   ### What changes are included in this PR?
   
   Add default type comparators for:
   - BitVector
   - DateDayVector
   - DateMilliVector
   - Decimal256Vector
   - DecimalVector
   - DurationVector
   - IntervalDayVector
   - TimeMicroVector
   - TimeMilliVector
   - TimeNanoVector
   - TimeSecVector
   - TimeStampVector
   
   IntervalMonthDayNanoVector is not supported due to its public type 
PeriodDuration not being Comparable.
   BitVector's getWidth() method does not return valid data by design since its 
length is smaller than 1 byte. Using a BitVector with a fixed-width type's 
algorithm will throw an IllegalArgumentException.
   
   ### Are these changes tested?
   
   Yes.
   
   ### Are there any user-facing changes?
   
   No.


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