Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@ import org.apache.spark.annotation.Stable
import org.apache.spark.unsafe.types.CalendarInterval

/**
* The data type representing calendar time intervals. The calendar time interval is stored
* internally in two components: number of months the number of microseconds.
* The data type representing calendar intervals. The calendar interval is stored internally in
* three components:
* an integer value representing the number of `months` in this interval,
* an integer value representing the number of `days` in this interval,
* a long value representing the number of `microseconds` in this interval.
*
* Please use the singleton `DataTypes.CalendarIntervalType`.
* Please use the singleton `DataTypes.CalendarIntervalType` to refer the type.
*
* @note Calendar intervals are not comparable.
* @note Calendar intervals support comparison and ordering since 3.0.0.
*
* @since 1.5.0
*/
Expand Down