Skip to content

Commit 8890595

Browse files
committed
[SPARK-29486][SQL][FOLLOWUP] Document the reason to add days field
1 parent dde0d2f commit 8890595

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

common/unsafe/src/main/java/org/apache/spark/unsafe/types/CalendarInterval.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ public final class CalendarInterval implements Serializable, Comparable<Calendar
3434
public final int days;
3535
public final long microseconds;
3636

37+
// Previous CalendarInterval has 2 fields: months and microseconds. Here we add one more days
38+
// fields due to one logical day interval may have different number of microseconds (daylight
39+
// saving).
3740
public CalendarInterval(int months, int days, long microseconds) {
3841
this.months = months;
3942
this.days = days;

0 commit comments

Comments
 (0)