YannByron commented on a change in pull request #3823:
URL: https://github.com/apache/hudi/pull/3823#discussion_r736720713



##########
File path: 
hudi-client/hudi-spark-client/src/test/java/org/apache/hudi/keygen/TestCustomKeyGenerator.java
##########
@@ -259,7 +268,7 @@ public void testNoRecordKeyFieldProp(boolean 
useKeyGeneratorClassName) {
             .getMessage()
             .contains("Property hoodie.datasource.write.recordkey.field not 
found"));
       } else {
-        Assertions.assertTrue(e.getMessage().contains("Property 
hoodie.datasource.write.recordkey.field not found"));

Review comment:
       I refactor the method `createKeyGenerator` which wouldn't throw an 
exception with this message directly, but this message "Property 
hoodie.datasource.write.recordkey.field not found" exists in the exception's 
stacktrace.




-- 
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]


Reply via email to