Uploaded image for project: 'Sqoop'
  1. Sqoop
  2. SQOOP-1986 Sqoop2: Schema matching improvements
  3. SQOOP-2011

Schema should expose columns in array or list and not both

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: None
    • Labels:
      None

      Description

      it is asking for trouble to store the schema columns in array and expose a list. the matching code currently uses LIST and it can completely use the array and work with it. In all places in IDF code we use the column array via the index.

      Array is preferred since it is easier to walk thorugh the object array format, there is one-one correspondence between the two with indexes

      http://eclipsesource.com/blogs/2014/04/11/3-good-reasons-to-avoid-arrays-in-java-interfaces/

      Please read the UPDATE section in the above link We really do not need the abilities of a list, we know the only reason we will use schema columns is read only.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vybs Veena Basavaraj
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: