XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.99.5
    • None
    • None

    Description

      The compareTo method in SqoopWritable looks like below, this means we are relying on the entire CSVString to order elements in the output.

      For instance, if we have 20 records in JDBC data source, the output will not be ordered by its primary key, especially when we need to do delta merges, we have to be cognizant that the ordering of records in the output is controlled by their CSV representation

        String getString() {
          return toIDF.getCSVTextData();
        }
      
      
      
        @Override
        public int compareTo(SqoopWritable o) {
          return getString().compareTo(o.getString());
        }
      
      

      Attachments

        1. SQOOP-1936.patch
          5 kB
          Veena Basavaraj
        2. SQOOP-1936-v2.patch
          4 kB
          Veena Basavaraj
        3. SQOOP-1936-v3.patch
          6 kB
          Veena Basavaraj

        Issue Links

          Activity

            People

              vybs Veena Basavaraj
              vybs Veena Basavaraj
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: