vinothchandar commented on a change in pull request #4067:
URL: https://github.com/apache/hudi/pull/4067#discussion_r773273993



##########
File path: 
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/config/HoodieWriteConfig.java
##########
@@ -1050,6 +1051,13 @@ public boolean populateMetaFields() {
         HoodieTableConfig.POPULATE_META_FIELDS.defaultValue()));
   }
 
+  public boolean shouldMetadataExcludeKeyFromPayload() {
+    if (getBasePath() == null || 
!HoodieTableMetadata.isMetadataTable(getBasePath())) {
+      return false;
+    }
+    return 
getMetadataConfig().getBooleanOrDefault(HoodieMetadataConfig.EXCLUDE_KEY_FROM_PAYLOAD);

Review comment:
       Not a great fan of having to special case this here, at the write config 
level and specifically. for metadta. 




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