Uploaded image for project: 'Sqoop'
  1. Sqoop
  2. SQOOP-3433

Improve Error Message if No User Mapping Found

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.5.0
    • Fix Version/s: None
    • Component/s: hive-integration
    • Labels:
      None

      Description

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

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ericlin Eric Lin
                Reporter:
                belugabehr David Mollitor
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m