shangxinli commented on code in PR #13674:
URL: https://github.com/apache/hudi/pull/13674#discussion_r2275172998


##########
hudi-hadoop-common/src/main/java/org/apache/hudi/common/util/ParquetUtils.java:
##########
@@ -239,6 +239,21 @@ public ClosableIterator<Pair<HoodieKey, Long>> 
fetchRecordKeysWithPositions(Hood
   public MessageType readSchema(HoodieStorage storage, StoragePath 
parquetFilePath) {
     return readMetadata(storage, 
parquetFilePath).getFileMetaData().getSchema();
   }
+  
+  /**
+   * Get the hash code of the schema from a parquet file.
+   * This is useful for quickly comparing schemas without full comparison.
+   */
+  public static Integer readSchemaHash(HoodieStorage storage, StoragePath 
parquetFilePath) {

Review Comment:
   Added the throw exception if schema evolution is disabled but actually it is 
happening. 



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