@@ -742,11 +742,11 @@ public static List<JsonObject> generateSimpleNullData(long startId, long num, in
742742 for (long i = startId ; i < (num + startId ); i ++) {
743743 JsonObject row = new JsonObject ();
744744 row .addProperty (CommonData .fieldInt64 , i );
745- row . addProperty ( CommonData . fieldInt32 , ( String ) null );
746- row .addProperty (CommonData .fieldInt16 , (int ) i % 32767 );
747- row .addProperty (CommonData .fieldInt8 , (short ) i % 127 );
748- row .addProperty (CommonData .fieldBool , i % 2 == 0 );
749- if ( i % 2 == 1 ) {
745+ if ( i % 2 == 0 ) {
746+ row .addProperty (CommonData .fieldInt32 , (int ) i % 32767 );
747+ row .addProperty (CommonData .fieldInt16 , (int ) i % 32767 );
748+ row .addProperty (CommonData .fieldInt8 , ( short ) i % 127 );
749+ row . addProperty ( CommonData . fieldBool , i % 3 == 0 );
750750 row .addProperty (CommonData .fieldDouble , (double ) i );
751751 row .addProperty (CommonData .fieldVarchar , "Str" + i );
752752 row .addProperty (CommonData .fieldFloat , (float ) i );
@@ -774,15 +774,15 @@ public static List<JsonObject> generateSimpleNullData(long startId, long num, in
774774 }
775775
776776 JsonObject json = new JsonObject ();
777- json . addProperty ( CommonData . fieldInt64 , ( int ) i % 32767 );
778- json .addProperty (CommonData .fieldInt32 , (int ) i % 32767 );
779- json .addProperty (CommonData .fieldDouble , (double ) i );
780- json .add (CommonData .fieldArray , gson . toJsonTree ( Arrays . asList ( i , i + 1 , i + 2 )) );
781- json .addProperty (CommonData .fieldBool , i % 2 == 0 );
782- if ( i % 2 == 1 ) {
777+ if ( i % 2 == 0 ) {
778+ json .addProperty (CommonData .fieldInt64 , (int ) i % 32767 );
779+ json .addProperty (CommonData .fieldInt32 , (int ) i % 32767 );
780+ json .addProperty (CommonData .fieldDouble , ( double ) i );
781+ json .add (CommonData .fieldArray , gson . toJsonTree ( Arrays . asList ( i , i + 1 , i + 2 )) );
782+ json . addProperty ( CommonData . fieldBool , i % 3 == 0 );
783783 json .addProperty (CommonData .fieldVarchar , "Str" + i );
784+ json .addProperty (CommonData .fieldFloat , (float ) i );
784785 }
785- json .addProperty (CommonData .fieldFloat , (float ) i );
786786 row .add (CommonData .fieldJson , json );
787787 jsonList .add (row );
788788 }
@@ -1542,7 +1542,7 @@ public static List<List<String>> providerBatchFiles(String collection, BulkFileT
15421542 CreateCollectionReq .CollectionSchema collectionSchema = describeCollectionResp .getCollectionSchema ();
15431543 RemoteBulkWriter remoteBulkWriter = buildRemoteBulkWriter (collectionSchema , bulkFileType );
15441544 List <JsonObject > jsonObjects = CommonFunction .genCommonData (collection , count );
1545- jsonObjects .forEach (x -> {
1545+ jsonObjects .forEach (x -> {
15461546 try {
15471547 remoteBulkWriter .appendRow (x );
15481548 } catch (IOException | InterruptedException e ) {
0 commit comments