sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Mollitor (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SQOOP-3433) Improve Error Message if No User Mapping Found
Date Wed, 13 Mar 2019 02:59:00 GMT
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)

Mime
View raw message