cdmikechen created HUDI-1254:
--------------------------------

             Summary: 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
             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*




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to