zhangyue19921010 commented on a change in pull request #4782:
URL: https://github.com/apache/hudi/pull/4782#discussion_r805105923
##########
File path:
hudi-common/src/main/java/org/apache/hudi/common/table/TableSchemaResolver.java
##########
@@ -422,6 +443,55 @@ public MessageType readSchemaFromBaseFile(Path
parquetFilePath) throws IOExcepti
return fileFooter.getFileMetaData().getSchema();
}
+ /**
+ * Read the parquet schema from a HFile.
+ */
+ public MessageType readSchemaFromHFileBaseFile(Path hFilePath) throws
IOException {
+ LOG.info("Reading schema from " + hFilePath);
+
+ FileSystem fs = metaClient.getRawFs();
+ if (!fs.exists(hFilePath)) {
Review comment:
Okay, changed all.
--
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]