prashantwason commented on a change in pull request #1687:
URL: https://github.com/apache/hudi/pull/1687#discussion_r441008422
##########
File path: hudi-client/src/main/java/org/apache/hudi/table/HoodieTable.java
##########
@@ -562,4 +566,28 @@ public void validateInsertSchema() throws
HoodieInsertException {
throw new HoodieInsertException("Failed insert schema compability
check.", e);
}
}
+
+ public HoodieFileFormat getBaseFileFormat() {
+ return metaClient.getTableConfig().getBaseFileFormat();
+ }
+
+ public HoodieFileFormat getLogFileFormat() {
+ return metaClient.getTableConfig().getLogFileFormat();
+ }
+
+ public HoodieLogBlockType getLogDataBlockFormat() {
+ switch (getBaseFileFormat()) {
+ case PARQUET:
+ return HoodieLogBlockType.AVRO_DATA_BLOCK;
+ case HFILE:
+ return HoodieLogBlockType.HFILE_DATA_BLOCK;
+ default:
+ throw new HoodieException("Base file format " + getBaseFileFormat()
+ + " does not have associated log block format");
+ }
+ }
+
+ public boolean requireSortedRecords() {
Review comment:
See my comments above. I have created a new merge handle.
----------------------------------------------------------------
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]