yihua commented on code in PR #10330:
URL: https://github.com/apache/hudi/pull/10330#discussion_r1469122283


##########
hudi-common/src/main/java/org/apache/hudi/common/table/TableSchemaResolver.java:
##########
@@ -342,9 +343,10 @@ private MessageType readSchemaFromHFileBaseFile(Path 
hFilePath) throws IOExcepti
     LOG.info("Reading schema from " + hFilePath);
 
     FileSystem fs = metaClient.getRawFs();
-    CacheConfig cacheConfig = new CacheConfig(fs.getConf());
-    try (HoodieAvroHFileReader hFileReader = new 
HoodieAvroHFileReader(fs.getConf(), hFilePath, cacheConfig)) {
-      return convertAvroSchemaToParquet(hFileReader.getSchema());
+    try (HoodieFileReader fileReader =
+             
HoodieFileReaderFactory.getReaderFactory(HoodieRecord.HoodieRecordType.AVRO)
+                 .getFileReader(new HoodieConfig(), fs.getConf(), hFilePath)) {

Review Comment:
   Fixed.



-- 
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]

Reply via email to