sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mengwei Ding (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SQOOP-827) Sqoop2: MMapInput is null while retrieving from DB if pass empty map on write
Date Mon, 05 Aug 2013 20:26:49 GMT

    [ https://issues.apache.org/jira/browse/SQOOP-827?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13729893#comment-13729893

Mengwei Ding commented on SQOOP-827:


I checked the test code in TestMMapInput.java. It has the follow test case:

  public void testUrlSafe() {
    MMapInput input1 = new MMapInput("sqoopsqoop", false);
    Map<String, String> map1 = new HashMap<String, String>();
    // Getting URL safe string
    String tmp = input1.getUrlSafeValueString();
    // Restore to actual value
    assertEquals(null, input1.getValue());

This test case did the similar thing as described. It asserts that the retrieved value should
be null, as the last assertEquals() shows. So I was wondering whether this is supposed to
be working in this way.

> Sqoop2: MMapInput is null while retrieving from DB if pass empty map on write
> -----------------------------------------------------------------------------
>                 Key: SQOOP-827
>                 URL: https://issues.apache.org/jira/browse/SQOOP-827
>             Project: Sqoop
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 2.0.0
>            Reporter: Vasanth kumar RJ
>            Assignee: Mengwei Ding
>             Fix For: 2.0.0
> In TestConnectionHandling.testUpdateConnection() method, if I use MMapInput type for
forms and set empty Map object to value. Then after update, in retrieved part getting form
value as null. Expected a empty map object in retrieved part.
> If I add any item in map object and update then getting expected same map.
> Thanks,
> Vasanth kumar

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message