@@ -253,7 +253,7 @@ public static void PrepareStreamTable_array(String dataType) throws IOException
253
253
"dateType_COMPLEX = array(COMPLEX[]).append!(cut(rand(complex(rand(100, 1000), rand(100, 1000)) join NULL, 1000*10), 10));; \n " +
254
254
"dateType_POINT = array(POINT[]).append!(cut(rand(point(rand(100, 1000), rand(100, 1000)) join NULL, 1000*10), 10)); \n " +
255
255
"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 " ;
257
257
DBConnection conn1 = new DBConnection ();
258
258
conn1 .connect (HOST , PORT ,"admin" ,"123456" );
259
259
conn1 .run (script );
@@ -265,7 +265,7 @@ public static void PrepareStreamTableDecimal_array(String dataType, int scale) t
265
265
"dateType_DECIMAL64 = array(DECIMAL64(4)[]).append!(cut(decimal32(take(-100..100 join NULL, 1000*10) + 0.254, 3), 10)); \n " +
266
266
"dateType_DECIMAL128 = array(DECIMAL128(8)[]).append!(cut(decimal32(take(-100..100 join NULL, 1000*10) + 0.254, 3), 10)); \n " +
267
267
"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 " ;
269
269
DBConnection conn1 = new DBConnection ();
270
270
conn1 .connect (HOST , PORT ,"admin" ,"123456" );
271
271
conn1 .run (script );
@@ -288,7 +288,7 @@ public static void wait_data(String table_name, int data_row) throws IOException
288
288
DBConnection conn = new DBConnection ();
289
289
conn .connect (HOST ,PORT ,"admin" ,"123456" );
290
290
BasicInt row_num ;
291
- for (int i =0 ;i <50 ;i ++){
291
+ for (int i =0 ;i <200 ;i ++){
292
292
row_num = (BasicInt )conn .run ("(exec count(*) from " +table_name +")[0]" );
293
293
// System.out.println(row_num.getInt());
294
294
if (row_num .getInt () == data_row ){
0 commit comments