@@ -442,20 +442,20 @@ public void testBasicDecimal64Vector_toJsonString() throws IOException {
442442 BasicDecimal64Vector re1 = new BasicDecimal64Vector (tmp_string_v ,4 );
443443 String re = JSONObject .toJSONString (re1 );
444444 System .out .println (re );
445- assertEquals ("{\" chart\" :false,\" chunk\" :false,\" dataCategory\" :\" DENARY\" ,\" dataForm\" :\" DF_VECTOR\" ,\" dataType\" :\" DT_DECIMAL64\" ,\" dictionary\" :false,\" elementClass\" :\" com.xxdb.data.BasicDecimal64\" ,\" matrix\" :false,\" pair\" :false,\" scalar\" :false,\" scale\" :4,\" string\" :\" [0.0000,-123.0043,132.2042,100.0000]\" ,\" table\" :false,\" unitLength\" :8,\" values \" :[0,-1230043,1322042,1000000],\" vector\" :true}" , re );
445+ assertEquals ("{\" chart\" :false,\" chunk\" :false,\" dataCategory\" :\" DENARY\" ,\" dataForm\" :\" DF_VECTOR\" ,\" dataType\" :\" DT_DECIMAL64\" ,\" dictionary\" :false,\" elementClass\" :\" com.xxdb.data.BasicDecimal64\" ,\" matrix\" :false,\" pair\" :false,\" scalar\" :false,\" scale\" :4,\" string\" :\" [0.0000,-123.0043,132.2042,100.0000]\" ,\" table\" :false,\" unitLength\" :8,\" unscaledValues \" :[0,-1230043,1322042,1000000],\" vector\" :true}" , re );
446446 }
447447 @ Test
448448 public void testBasicDecimal64Vector_toJsonString_null () throws IOException {
449449 BasicDecimal64Vector re1 = new BasicDecimal64Vector (2 ,2 );
450450 String re = JSONObject .toJSONString (re1 );
451451 System .out .println (re );
452- assertEquals ("{\" chart\" :false,\" chunk\" :false,\" dataCategory\" :\" DENARY\" ,\" dataForm\" :\" DF_VECTOR\" ,\" dataType\" :\" DT_DECIMAL64\" ,\" dictionary\" :false,\" elementClass\" :\" com.xxdb.data.BasicDecimal64\" ,\" matrix\" :false,\" pair\" :false,\" scalar\" :false,\" scale\" :2,\" string\" :\" [0.00,0.00]\" ,\" table\" :false,\" unitLength\" :8,\" values \" :[0,0],\" vector\" :true}" , re );
452+ assertEquals ("{\" chart\" :false,\" chunk\" :false,\" dataCategory\" :\" DENARY\" ,\" dataForm\" :\" DF_VECTOR\" ,\" dataType\" :\" DT_DECIMAL64\" ,\" dictionary\" :false,\" elementClass\" :\" com.xxdb.data.BasicDecimal64\" ,\" matrix\" :false,\" pair\" :false,\" scalar\" :false,\" scale\" :2,\" string\" :\" [0.00,0.00]\" ,\" table\" :false,\" unitLength\" :8,\" unscaledValues \" :[0,0],\" vector\" :true}" , re );
453453 }
454454 @ Test
455455 public void testBasicDecimal64Vector_getValue () throws IOException {
456456 String [] tmp_string_v = {"0.0" ,"-123.00432" ,"132.204234" ,"100.0" };
457457 BasicDecimal64Vector re1 = new BasicDecimal64Vector (tmp_string_v ,4 );
458- long [] re = re1 .getValues ();
458+ long [] re = re1 .getUnscaledValues ();
459459 System .out .println (Arrays .toString (re ));
460460 assertEquals ("[0, -1230043, 1322042, 1000000]" ,Arrays .toString (re ));
461461 }
0 commit comments