yaooqinn commented on a change in pull request #26337: [SPARK-29679][SQL] Make 
interval type comparable and orderable
URL: https://github.com/apache/spark/pull/26337#discussion_r343977155
 
 

 ##########
 File path: 
common/unsafe/src/main/java/org/apache/spark/unsafe/types/CalendarInterval.java
 ##########
 @@ -24,12 +24,14 @@
 import java.time.temporal.ChronoUnit;
 import java.util.Objects;
 
+import scala.math.Ordered;
+
 import static org.apache.spark.sql.catalyst.util.DateTimeConstants.*;
 
 /**
  * The internal representation of interval type.
  */
-public final class CalendarInterval implements Serializable {
+public final class CalendarInterval implements Serializable, 
Ordered<CalendarInterval> {
 
 Review comment:
   I should be able to use java comparable. I will try this.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to