[ https://issues.apache.org/jira/browse/HUDI-1254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
leesf resolved HUDI-1254. ------------------------- Resolution: Fixed > TypedProperties can not get values by initializing an existing properties > ------------------------------------------------------------------------- > > Key: HUDI-1254 > URL: https://issues.apache.org/jira/browse/HUDI-1254 > Project: Apache Hudi > Issue Type: Bug > Components: Common Core > Reporter: cdmikechen > Assignee: linshan-ma > Priority: Major > Labels: pull-request-available > Fix For: 0.6.1 > > > If I create a test to new a TypedProperties by a Properties that exists like > blow: > {code:java} > public class TestTypedProperties { > @Test > public void testNewTypedProperties() { > Properties properties = new Properties(); > properties.put("test_key1", "test_value1"); > TypedProperties typedProperties = new TypedProperties(properties); > assertEquals("test_value1", typedProperties.getString("test_key1")); > } > } > {code} > Test can not pass and get this error: *java.lang.IllegalArgumentException: > Property test_key1 not found* > I think this is a bug and need to be fixed. -- This message was sent by Atlassian Jira (v8.3.4#803005)