n3nash commented on a change in pull request #1100:
URL: https://github.com/apache/hudi/pull/1100#discussion_r439880135
##########
File path: hudi-spark/src/main/java/org/apache/hudi/QuickstartUtils.java
##########
@@ -48,6 +48,30 @@
*/
public class QuickstartUtils {
+ private static Option<String> convertToString(HoodieRecord record) {
+ try {
+ String str = HoodieAvroUtils
+ .bytesToAvro(((OverwriteWithLatestAvroPayload)
record.getData()).recordBytes, DataGenerator.avroSchema)
+ .toString();
+ str = "{" + str.substring(str.indexOf("\"ts\":"));
+ return Option.of(str.replaceAll("}", ", \"partitionpath\": \"" +
record.getPartitionPath() + "\"}"));
+ } catch (IOException e) {
+ return Option.empty();
+ }
+ }
+
+ public static List<String> convertToStringList(List<HoodieRecord> records) {
Review comment:
Removed this unused method.
----------------------------------------------------------------
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]