You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "David Mollitor (JIRA)" <ji...@apache.org> on 2019/03/13 02:59:00 UTC

[jira] [Created] (SQOOP-3433) Improve Error Message if No User Mapping Found

David Mollitor created SQOOP-3433:
-------------------------------------

             Summary: Improve Error Message if No User Mapping Found
                 Key: SQOOP-3433
                 URL: https://issues.apache.org/jira/browse/SQOOP-3433
             Project: Sqoop
          Issue Type: Improvement
          Components: hive-integration
    Affects Versions: 1.5.0
            Reporter: David Mollitor


{code:java|title=TableDefWriter.java}
      if (!found) {
        throw new IllegalArgumentException("No column by the name " + column
                + "found while importing data");
      }
{code}

I noticed that the word 'found' does not have a space before it, so the error message is a bit unclear.   Unfortunately, there is a unit test that affirms this incorrect behavior.

Also, there may be more than one column name unaccounted for, so it would be difficult to troubleshoot this issue by having to re-run this method several times to get each erroneous column name.  Instead, report all of the missing columns in the error message.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)