use of org.apache.hudi.common.config.TypedProperties in project hudi by apache.
the class TestGlobalDeleteKeyGenerator method getWrongRecordKeyFieldProps.
private TypedProperties getWrongRecordKeyFieldProps() {
TypedProperties properties = new TypedProperties();
properties.put(KeyGeneratorOptions.RECORDKEY_FIELD_NAME.key(), "_wrong_key");
return properties;
}
use of org.apache.hudi.common.config.TypedProperties in project hudi by apache.
the class TestNonpartitionedKeyGenerator method getPropertiesWithoutRecordKeyProp.
private TypedProperties getPropertiesWithoutRecordKeyProp() {
TypedProperties properties = new TypedProperties();
properties.put(KeyGeneratorOptions.PARTITIONPATH_FIELD_NAME.key(), "timestamp");
return properties;
}
use of org.apache.hudi.common.config.TypedProperties in project hudi by apache.
the class TestSimpleKeyGenerator method getWrongRecordKeyFieldProps.
private TypedProperties getWrongRecordKeyFieldProps() {
TypedProperties properties = new TypedProperties();
properties.put(KeyGeneratorOptions.PARTITIONPATH_FIELD_NAME.key(), "timestamp");
properties.put(KeyGeneratorOptions.RECORDKEY_FIELD_NAME.key(), "_wrong_key");
return properties;
}
use of org.apache.hudi.common.config.TypedProperties in project hudi by apache.
the class TestSimpleKeyGenerator method getPropsWithNestedPartitionPathField.
private TypedProperties getPropsWithNestedPartitionPathField() {
TypedProperties properties = getCommonProps();
properties.put(KeyGeneratorOptions.PARTITIONPATH_FIELD_NAME.key(), "nested_col.prop1");
return properties;
}
use of org.apache.hudi.common.config.TypedProperties in project hudi by apache.
the class TestSimpleKeyGenerator method getComplexRecordKeyProp.
private TypedProperties getComplexRecordKeyProp() {
TypedProperties properties = new TypedProperties();
properties.put(KeyGeneratorOptions.PARTITIONPATH_FIELD_NAME.key(), "timestamp");
properties.put(KeyGeneratorOptions.RECORDKEY_FIELD_NAME.key(), "_row_key,pii_col");
return properties;
}
Aggregations