Skip to content

Commit 0c2ada0

Browse files
committed
update test case about stream
1 parent 98dafa3 commit 0c2ada0

File tree

4 files changed

+822
-816
lines changed

4 files changed

+822
-816
lines changed

test/com/xxdb/Prepare.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ public static void PrepareStreamTable_array(String dataType) throws IOException
253253
"dateType_COMPLEX = array(COMPLEX[]).append!(cut(rand(complex(rand(100, 1000), rand(100, 1000)) join NULL, 1000*10), 10));; \n"+
254254
"dateType_POINT = array(POINT[]).append!(cut(rand(point(rand(100, 1000), rand(100, 1000)) join NULL, 1000*10), 10)); \n"+
255255
"share table(permno,dateType_"+dataType +") as pub_t\n"+
256-
"share streamTable(1000000:0, `permno`dateType, [INT,"+dataType +"[]]) as sub1;\n";
256+
"share streamTable(10000:0, `permno`dateType, [INT,"+dataType +"[]]) as sub1;\n";
257257
DBConnection conn1 = new DBConnection();
258258
conn1.connect(HOST, PORT,"admin","123456");
259259
conn1.run(script);
@@ -265,7 +265,7 @@ public static void PrepareStreamTableDecimal_array(String dataType, int scale) t
265265
"dateType_DECIMAL64 = array(DECIMAL64(4)[]).append!(cut(decimal32(take(-100..100 join NULL, 1000*10) + 0.254, 3), 10)); \n"+
266266
"dateType_DECIMAL128 = array(DECIMAL128(8)[]).append!(cut(decimal32(take(-100..100 join NULL, 1000*10) + 0.254, 3), 10)); \n"+
267267
"share table(permno,dateType_"+dataType +") as pub_t\n"+
268-
"share streamTable(1000000:0, `permno`dateType, [INT,"+dataType +"("+scale+")[]]) as sub1;\n";
268+
"share streamTable(10000:0, `permno`dateType, [INT,"+dataType +"("+scale+")[]]) as sub1;\n";
269269
DBConnection conn1 = new DBConnection();
270270
conn1.connect(HOST, PORT,"admin","123456");
271271
conn1.run(script);
@@ -288,7 +288,7 @@ public static void wait_data(String table_name, int data_row) throws IOException
288288
DBConnection conn = new DBConnection();
289289
conn.connect(HOST,PORT,"admin","123456");
290290
BasicInt row_num;
291-
for(int i=0;i<50;i++){
291+
for(int i=0;i<200;i++){
292292
row_num = (BasicInt)conn.run("(exec count(*) from "+table_name+")[0]");
293293
// System.out.println(row_num.getInt());
294294
if(row_num.getInt() == data_row){

0 commit comments

Comments
 (0)