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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.6
    • 1.4.7
    • codegen
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: