hudi-agent commented on code in PR #20346:
URL: https://github.com/apache/hudi/pull/20346#discussion_r4290280099


##########
hudi-common/src/main/java/org/apache/hudi/common/table/HoodieTableConfig.java:
##########
@@ -701,6 +701,17 @@ public static void create(HoodieStorage storage, 
StoragePath metadataFolder, Pro
         hoodieConfig.setValue(POPULATE_META_FIELDS,
             Boolean.toString(metaFieldsMode.toLegacyPopulateMetaFields()));
       }
+      List<String> orderingFields = 
StringUtils.split(hoodieConfig.getProps().getProperty(ORDERING_FIELDS.key()), 
",");

Review Comment:
   🤖 nit: would it make sense to move this block into a small helper like 
`setLegacyPrecombineFieldIfNeeded(hoodieConfig, tableVersion)`, so `create()` 
reads as a list of steps and the rule for versions below 9 lives in one named 
place?
   
   <sub><i>⚠️ AI-generated; verify before applying. React 👍/👎 to flag 
quality.</i></sub>



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