Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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
Attachments
Issue Links
- links to