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

Sqoop import failure due to data member conflict in ORM code for table

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.6
    • Fix Version/s: 1.4.7
    • Component/s: codegen
    • Labels:
      None

      Description

      While importing data with Sqoop, if any of the table contains a column named "PROTOCOL_VERSION", Sqoop will fail to import data.

      /tmp/sqoop-user/compile/fd570d817e8323d1135a7f2a6612e321/QueryResult.java:173: error: variable PROTOCOL_VERSION is already defined in class QueryResult
      private String PROTOCOL_VERSION;
      ^
      /tmp/sqoop-user/compile/fd570d817e8323d1135a7f2a6612e321/QueryResult.java:175: error: incompatible types
      return PROTOCOL_VERSION;
      ^
      required: String
      found: int

        Attachments

        1. 0001-SQOOP-2839.patch
          3 kB
          VISHNU S NAIR

          Activity

            People

            • Assignee:
              vishnusn VISHNU S NAIR
              Reporter:
              vishnusn VISHNU S NAIR
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: