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

Improve Error Message if No User Mapping Found

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.5.0
    • None
    • hive-integration
    • 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

              ericlin Eric Lin
              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