n3nash commented on a change in pull request #1115: [HUDI-392] Introduce
DIstributedTestDataSource to generate test data
URL: https://github.com/apache/incubator-hudi/pull/1115#discussion_r361026575
##########
File path:
hudi-client/src/test/java/org/apache/hudi/common/HoodieTestDataGenerator.java
##########
@@ -114,20 +114,20 @@ public static void writePartitionMetadata(FileSystem fs,
String[] partitionPaths
* Generates a new avro record of the above schema format, retaining the key
if optionally provided.
*/
public static TestRawTripPayload generateRandomValue(HoodieKey key, String
commitTime) throws IOException {
- GenericRecord rec = generateGenericRecord(key.getRecordKey(), "rider-" +
commitTime, "driver-" + commitTime, 0.0);
+ GenericRecord rec = generateGenericRecord(key.getRecordKey(), "rider-" +
commitTime, "driver-" + commitTime, 0);
return new TestRawTripPayload(rec.toString(), key.getRecordKey(),
key.getPartitionPath(), TRIP_EXAMPLE_SCHEMA);
}
/**
* Generates a new avro record of the above schema format, retaining the key
if optionally provided.
*/
public static HoodieAvroPayload generateAvroPayload(HoodieKey key, String
commitTime) throws IOException {
- GenericRecord rec = generateGenericRecord(key.getRecordKey(), "rider-" +
commitTime, "driver-" + commitTime, 0.0);
+ GenericRecord rec = generateGenericRecord(key.getRecordKey(), "rider-" +
commitTime, "driver-" + commitTime, 0);
return new HoodieAvroPayload(Option.of(rec));
}
public static GenericRecord generateGenericRecord(String rowKey, String
riderName, String driverName,
- double timestamp) {
+ long timestamp) {
Review comment:
Okay, we can fix that, shouldn't be difficult
----------------------------------------------------------------
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