danny0405 commented on code in PR #9936:
URL: https://github.com/apache/hudi/pull/9936#discussion_r1377043304
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/keygen/ComplexAvroKeyGenerator.java:
##########
@@ -41,6 +41,9 @@ public ComplexAvroKeyGenerator(TypedProperties props) {
@Override
public String getRecordKey(GenericRecord record) {
+ if (getRecordKeyFieldNames().size() == 1) {
+ return KeyGenUtils.getRecordKey(record, getRecordKeyFieldNames().get(0),
isConsistentLogicalTimestampEnabled());
Review Comment:
Can we write some basic unit tests for it. Like in `ComplexAvroKeyGenerator`
--
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]