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

Netezza Direct Import does not support --columns options

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4.6
    • Fix Version/s: 1.4.7
    • Component/s: connectors
    • Labels:
      None
    • Flags:
      Important

      Description

      Netezza Direct import Mapper is not sensitive to columns option. The parameters passed to --columns C1,C2,C3,C4 are ignored by NetezzaExternalTableImportMapper.

      NetezzaExternalTableImportMapper on line 83 is based of output field names instead of input field names.

      Even when -D mapreduce.jdbc.output.field.names=C1,C2,C3,C4 is set, another bug in NetezzaExternalTableImportMapper @ line 128 duplicates the first column. This is due to the for loop initialization bug where variable i should be initialized to 1 instead of 0.

        Attachments

        1. SQOOP-3138.patch
          1 kB
          Suraj Nayak

          Issue Links

            Activity

              People

              • Assignee:
                snayakm Suraj Nayak
                Reporter:
                snayakm Suraj Nayak
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: