Skip to content

Commit 523ec20

Browse files
committed
update test case about cep
1 parent 52ae9cf commit 523ec20

File tree

4 files changed

+287
-85
lines changed

4 files changed

+287
-85
lines changed

test/com/xxdb/Prepare.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ public static void Preparedata_array(long count1,long count2) throws IOException
175175
"ccomplex = array( COMPLEX[]).append!(cut(rand(complex(rand(100, 1000), rand(100, 1000)) join NULL, n), m))\n" +
176176
"cpoint = array(POINT[]).append!(cut(rand(point(rand(100, 1000), rand(100, 1000)) join NULL, n), m))\n" +
177177
"cdecimal32 = array(DECIMAL32(2)[]).append!(cut(decimal32(take(-100..100 join NULL, n) + 0.254, 3), m))\n" +
178-
"cdecimal64 = array(DECIMAL64(7)[]).append!(cut(decimal64(take(-100..100 join NULL, n) + 0.25467, 4), m))\n" +
179-
"cdecimal128 = array(DECIMAL128(19)[]).append!(cut(decimal128(take(-100..100 join NULL, n) + 0.25467, 5), m))\n" +
178+
"cdecimal64 = array(DECIMAL64(7)[]).append!(cut(decimal64(take(-100..100 join NULL, n) + 0.25, 4), m))\n" +
179+
"cdecimal128 = array(DECIMAL128(19)[]).append!(cut(decimal128(take(-100..100 join NULL, n) + 0.25, 5), m))\n" +
180180
"share table(cbool, cchar, cshort, cint, clong, cdouble, cfloat, cdate, cmonth, ctime, cminute, csecond, cdatetime, ctimestamp, cnanotime, cnanotimestamp, cdatehour, cuuid, cipaddr, cint128, cpoint, ccomplex, cdecimal32, cdecimal64, cdecimal128) as data;\n" ;
181181
DBConnection conn = new DBConnection();
182182
conn.connect(HOST,PORT,"admin","123456");
@@ -219,8 +219,8 @@ public static void Preparedata_array_decimal(long count1,long count2) throws IOE
219219
"n="+count1+";\n" +
220220
"m="+count2+";\n" +
221221
"cdecimal32 = array(DECIMAL32(2)[]).append!(cut(decimal32(take(-100..100 join NULL, n) + 0.254, 3), m))\n" +
222-
"cdecimal64 = array(DECIMAL64(7)[]).append!(cut(decimal64(take(-100..100 join NULL, n) + 0.25467, 4), m))\n" +
223-
"cdecimal128 = array(DECIMAL128(19)[]).append!(cut(decimal128(take(-100..100 join NULL, n) + 0.25467, 5), m))\n" +
222+
"cdecimal64 = array(DECIMAL64(7)[]).append!(cut(decimal64(take(-100..100 join NULL, n) + 0.2546, 4), m))\n" +
223+
"cdecimal128 = array(DECIMAL128(19)[]).append!(cut(decimal128(take(-100..100 join NULL, n) + 0.25, 5), m))\n" +
224224
"share table( cdecimal32, cdecimal64,cdecimal128) as data;" ;
225225
DBConnection conn = new DBConnection();
226226
conn.connect(HOST,PORT,"admin","123456");
@@ -287,7 +287,7 @@ public static void PrepareUser_authMode(String userName,String password,String a
287287
public static void checkData(BasicTable exception, BasicTable resTable) {
288288
assertEquals(exception.rows(), resTable.rows());
289289
for (int i = 0; i < exception.columns(); i++) {
290-
System.out.println("col" + resTable.getColumnName(i));
290+
//System.out.println("col" + resTable.getColumnName(i));
291291
assertEquals(exception.getColumn(i).getString(), resTable.getColumn(i).getString());
292292
}
293293
}

test/com/xxdb/data/BasicVoidTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22

33
import com.alibaba.fastjson2.JSONObject;
44
import com.xxdb.DBConnection;
5-
import com.xxdb.comm.ErrorCodeInfo;
65
import com.xxdb.io.*;
7-
import com.xxdb.multithreadedtablewriter.MultithreadedTableWriter;
8-
import org.apache.commons.lang3.ObjectUtils;
96
import org.junit.After;
107
import org.junit.Assert;
118
import org.junit.Before;

0 commit comments

Comments
 (0)