danny0405 commented on code in PR #12101:
URL: https://github.com/apache/hudi/pull/12101#discussion_r1800930205
##########
hudi-client/hudi-spark-client/src/test/java/org/apache/hudi/table/functional/TestSparkNonBlockingConcurrencyControl.java:
##########
@@ -213,6 +215,23 @@ public void
testNonBlockingConcurrencyControlWithInflightInstant() throws Except
checkWrittenData(result, 1);
}
+ @ParameterizedTest
+ @EnumSource(value = WriteOperationType.class, names = {"BULK_INSERT",
"INSERT", "UPSERT"})
+ public void testFileIdWithNonBlockingConcurrencyControl(WriteOperationType
operationType) throws Exception {
+ HoodieWriteConfig config = createHoodieWriteConfig();
+ metaClient = getHoodieMetaClient(HoodieTableType.MERGE_ON_READ,
config.getProps());
+
+ SparkRDDWriteClient client = getHoodieWriteClient(config);
+ List<String> dataset = Collections.singletonList("id0,Danny,0,0,par1");
+ String insertTime0 = client.createNewInstantTime();
+ List<WriteStatus> writeStatuses = writeData(client, insertTime0, dataset,
true, operationType);
+ for (WriteStatus status : writeStatuses) {
+ String fileID = status.getFileId();
+ assertTrue(fileID.endsWith(CONSTANT_FILE_ID_SUFFIX + "-0"));
Review Comment:
Why we need this `-0` suffix then?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]