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


##########
hudi-common/src/main/java/org/apache/hudi/common/table/HoodieTableConfig.java:
##########
@@ -1195,6 +1265,47 @@ public boolean populateMetaFields() {
     return Boolean.parseBoolean(getStringOrDefault(POPULATE_META_FIELDS));
   }
 
+  /**
+   * Checks if a specific meta field is excluded from population via
+   * {@link #META_FIELDS_EXCLUDE_LIST}.
+   *
+   * @param metaFieldName the meta field name to check (e.g. {@code 
_hoodie_commit_time})
+   * @return true if the field is in the exclusion list
+   */
+  public boolean isMetaFieldExcluded(String metaFieldName) {
+    return 
HoodieMetaFieldFlags.parseExcludeList(getString(META_FIELDS_EXCLUDE_LIST))

Review Comment:
   we can keep a member of HoodieMetaFieldFlags to cache the access to it since 
it is immutable.



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