Skip to content

Commit 13ca3bb

Browse files
committed
AJ-464:update test case about month
1 parent 11f0d41 commit 13ca3bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/com/xxdb/compression/ServerCompressionTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ public void testCompressTime_before1970() throws Exception {
731731
for (int i = 0; i < 100000; i++) {
732732
date[i] = baseDate - i;
733733
timestamp[i] = basicTimestamp -i;
734-
month[i]=basicMonth + i;
734+
month[i]=basicMonth - i;
735735
nanotimestamp[i]=basicNanoTimestamp-i;
736736
datetime[i]=basicDateTime-i;
737737
}
@@ -752,7 +752,7 @@ public void testCompressTime_before1970() throws Exception {
752752
//include null
753753
int n=500000;
754754
BasicDateVector datev = (BasicDateVector) conn.run("1970.01.01 -(1.."+n+") join take(date(),"+n+")");
755-
BasicMonthVector monthv = (BasicMonthVector) conn.run("1970.01M +(1.."+n+") join take(month(),"+n+")");
755+
BasicMonthVector monthv = (BasicMonthVector) conn.run("1970.01M -(1.."+n+") join take(month(),"+n+")");
756756
BasicTimestampVector timestampv = (BasicTimestampVector) conn.run("1970.01.01 00:00:00.000 -(1.."+n+") join take(timestamp(),"+n+")");
757757
BasicNanoTimestampVector nanotimestampv = (BasicNanoTimestampVector) conn.run("nanotimestamp(0) -rand(1.."+n+" ,"+n+") join take(nanotimestamp(),"+n+")");
758758
BasicDateTimeVector datetimev = (BasicDateTimeVector) conn.run("1970.01.01 00:00:00 - rand(1.."+n+" ,"+n+") join take(datetime(),"+n+")");

0 commit comments

Comments
 (0)