rahil-c commented on code in PR #13650:
URL: https://github.com/apache/hudi/pull/13650#discussion_r2283608326
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/config/HoodieWriteConfig.java:
##########
@@ -258,6 +258,33 @@ public class HoodieWriteConfig extends HoodieConfig {
"**Note** This is being actively worked on. Please use "
+ "`hoodie.datasource.write.keygenerator.class` instead.");
+ public static final ConfigProperty<Boolean>
COMPLEX_KEYGEN_ENCODE_SINGLE_RECORD_KEY_FIELD_NAME = ConfigProperty
+ .key("hoodie.write.complex.keygen.encode.single.record.key.field.name")
+ .defaultValue(true)
+ .markAdvanced()
+ .sinceVersion("0.14.2,0.15.1,1.0.3,1.1.0")
+ .withDocumentation("If set to true, the record key field name is encoded
and prepended "
+ + "in the case where a single record key field is used in the
complex key generator, "
+ + "i.e., record keys stored in _hoodie_record_key meta field is in
the format of "
+ + "`<field_name>:<field_value>`, which conforms to the behavior "
+ + "in 0.14.0 release and older. If set to false, the record key
field name is not "
+ + "encoded under the same case in the complex key generator, i.e.,
record keys stored "
+ + "in _hoodie_record_key meta field is in the format of
`<field_value>`, "
+ + "which conforms to the behavior in 0.14.1, 0.15.0, 1.0.0, 1.0.1,
1.0.2 releases.");
+
+ public static final ConfigProperty<Boolean> ENABLE_COMPLEX_KEYGEN_VALIDATION
= ConfigProperty
+ .key("hoodie.write.complex.keygen.validation.enable")
+ .defaultValue(true)
+ .markAdvanced()
+ .sinceVersion("0.14.2,0.15.1,1.0.3,1.1.0")
+ .withDocumentation("If set to true, the writer enables the validation on
whether the table "
+ + "uses the complex key generator which a single record key field,
which can be affected "
Review Comment:
```suggestion
+ "uses the complex key generator with a single record key field,
which can be affected "
```
--
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]