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

Sqoop2: LoaderContext has the wrong Schema

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • from/to
    • 1.99.4
    • None
    • None

    Description

              if (!isTest) {
                // Using the TO schema since the IDF returns data in TO schema
                schema = ConfigurationUtils.getConnectorSchema(Direction.TO, conf);
                ...
              }
      
              // Create loader context
              LoaderContext loaderContext = new LoaderContext(subContext, reader, schema);
      

      In some cases, the matcher will use the FROM schema. The loader should provide the FROM schema in this case.

      Attachments

        1. SQOOP-1581.2.patch
          1 kB
          Qian Xu
        2. SQOOP-1581.3.patch
          0.9 kB
          Qian Xu
        3. SQOOP-1581.patch
          4 kB
          Qian Xu

        Activity

          People

            stanleyxu2005 Qian Xu
            abec Abraham Elmahrek
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: