the-other-tim-brown commented on code in PR #18042:
URL: https://github.com/apache/hudi/pull/18042#discussion_r2742687106


##########
hudi-common/src/main/java/org/apache/hudi/common/util/LanceUtils.java:
##########
@@ -76,25 +76,32 @@ public ClosableIterator<HoodieKey> 
getHoodieKeyIterator(HoodieStorage storage,
                                                            
Option<BaseKeyGenerator> keyGeneratorOpt,
                                                            Option<String> 
partitionPath) {
     try {
+      // Read schema for HoodieSparkRecord.getRecordKey() to access meta 
fields correctly
+      HoodieSchema fullSchema = readSchema(storage, filePath);

Review Comment:
   This is using the full schema which means we're reading more data than we 
need. We should use `getKeyIteratorSchema` or something similar.



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