bvaradar commented on a change in pull request #1150: [HUDI-288]: Add support 
for ingesting multiple kafka streams in a single DeltaStreamer deployment
URL: https://github.com/apache/incubator-hudi/pull/1150#discussion_r400006445
 
 

 ##########
 File path: 
hudi-client/src/test/java/org/apache/hudi/common/HoodieTestDataGenerator.java
 ##########
 @@ -155,6 +181,19 @@ public static TestRawTripPayload generateRandomValue(
     return new TestRawTripPayload(rec.toString(), key.getRecordKey(), 
key.getPartitionPath(), TRIP_EXAMPLE_SCHEMA);
   }
 
+  /**
+   * Generates a new avro record with TRIP_UBER_EXAMPLE_SCHEMA, retaining the 
key if optionally provided.
+   */
+  public TestRawTripPayload generatePayloadForUberSchema(HoodieKey key, String 
commitTime) throws IOException {
+    GenericRecord rec = generateRecordForUberSchema(key.getRecordKey(), 
"rider-" + commitTime, "driver-" + commitTime, 0.0);
+    return new TestRawTripPayload(rec.toString(), key.getRecordKey(), 
key.getPartitionPath(), TRIP_UBER_SCHEMA);
+  }
+
+  public TestRawTripPayload generatePayloadForFgSchema(HoodieKey key, String 
commitTime) throws IOException {
 
 Review comment:
   Please remove Fg from this method name 

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

Reply via email to