vinothchandar commented on a change in pull request #1091: [HUDI-389] Fixing
Index look up to return right partitions for a given key along with fileId with
Global Bloom
URL: https://github.com/apache/incubator-hudi/pull/1091#discussion_r357202347
##########
File path:
hudi-client/src/test/java/org/apache/hudi/TestHoodieClientOnCopyOnWriteStorage.java
##########
@@ -336,7 +335,54 @@ public void testDeletes() throws Exception {
}
/**
- * Test scenario of new file-group getting added during upsert().
+ * Test update of a record to different partition with Global Index
+ */
+ @Test
+ public void testUpsertToDiffPartitionGlobaIndex() throws Exception {
+ HoodieWriteClient client =
getHoodieWriteClient(getConfig(IndexType.GLOBAL_BLOOM), false);
+ /**
+ * Write 1 (inserts and deletes) Write actual 200 insert records and
ignore 100 delete records
+ */
+ String initCommitTime = "000";
+ String newCommitTime = "001";
+ List<HoodieRecord> inserts1 = dataGen.generateInserts(newCommitTime, 10);
+
+ // Write 1 (only inserts)
+ client.startCommitWithTime(newCommitTime);
+ JavaRDD<HoodieRecord> writeRecords = jsc.parallelize(inserts1, 1);
+ System.out.println("Records to be inserted " + writeRecords.collect());
Review comment:
log?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services