danny0405 commented on code in PR #7296:
URL: https://github.com/apache/hudi/pull/7296#discussion_r1031099300
##########
hudi-flink-datasource/hudi-flink/src/test/java/org/apache/hudi/utils/TestData.java:
##########
@@ -429,6 +430,35 @@ public static void writeData(
funcWrapper.close();
}
+ /**
+ * Write a list of row data with Hoodie format base on the given
configuration.
+ *
+ * @param dataBuffer The data buffer to write
+ * @param conf The flink configuration
+ * @throws Exception if error occurs
+ */
+ public static void writeDataAsInsert(
+ List<RowData> dataBuffer,
+ Configuration conf) throws Exception {
+ InsertFunctionWrapper<RowData> funcWrapper = new InsertFunctionWrapper<>(
Review Comment:
TODO: would refactor the code with writer wrapper.
--
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]