danny0405 commented on code in PR #13947:
URL: https://github.com/apache/hudi/pull/13947#discussion_r2365896403


##########
hudi-common/src/main/java/org/apache/hudi/common/table/HoodieTableMetaClient.java:
##########
@@ -1440,6 +1460,18 @@ public TableBuilder fromProperties(Properties 
properties) {
       if 
(hoodieConfig.contains(HoodieTableConfig.RELATIVE_INDEX_DEFINITION_PATH)) {
         
setIndexDefinitionPath(hoodieConfig.getString(HoodieTableConfig.RELATIVE_INDEX_DEFINITION_PATH));
       }
+      // set delete field and marker value, if both are present
+      // check if config is prefixed for the table config or passed in from 
older write config properties
+      if (hoodieConfig.contains(RECORD_MERGE_PROPERTY_PREFIX + DELETE_KEY)) {
+        String deleteFieldName = 
hoodieConfig.getString(RECORD_MERGE_PROPERTY_PREFIX + DELETE_KEY);
+        String markerValue = 
hoodieConfig.getString(RECORD_MERGE_PROPERTY_PREFIX + DELETE_MARKER);
+        setRecordDeleteFieldAndMarker(deleteFieldName, markerValue);
+      }
+      if (hoodieConfig.contains(DELETE_KEY)) {

Review Comment:
   Okay, if the `RECORD_MERGE_PROPERTY_PREFIX + ...` table options are the only 
true source that we fetch the delete marker mappings, should we just suggest 
users to use these options directly, the `DELETE_KEY` is just a payload option 
in `DefaultHoodieRecordPayload` itself and not shared by other payloads?



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