sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r1310129 - /sqoop/trunk/src/java/org/apache/sqoop/mapreduce/DataDrivenImportJob.java
Date Thu, 05 Apr 2012 23:22:51 GMT
Author: blee
Date: Thu Apr  5 23:22:51 2012
New Revision: 1310129

URL: http://svn.apache.org/viewvc?rev=1310129&view=rev
Log:
SQOOP-474 Split-by specification incorrectly triggers bounding value query

Modified:
    sqoop/trunk/src/java/org/apache/sqoop/mapreduce/DataDrivenImportJob.java

Modified: sqoop/trunk/src/java/org/apache/sqoop/mapreduce/DataDrivenImportJob.java
URL: http://svn.apache.org/viewvc/sqoop/trunk/src/java/org/apache/sqoop/mapreduce/DataDrivenImportJob.java?rev=1310129&r1=1310128&r2=1310129&view=diff
==============================================================================
--- sqoop/trunk/src/java/org/apache/sqoop/mapreduce/DataDrivenImportJob.java (original)
+++ sqoop/trunk/src/java/org/apache/sqoop/mapreduce/DataDrivenImportJob.java Thu Apr  5 23:22:51
2012
@@ -119,7 +119,7 @@ public class DataDrivenImportJob extends
    * @return input boundary query as a string
    */
   private String buildBoundaryQuery(String col, String query) {
-    if (col == null) {
+    if (col == null || options.getNumMappers() == 1) {
       return "";
     }
 



Mime
View raw message