mirror of
https://github.com/apache/sqoop.git
synced 2025-05-06 18:41:23 +08:00
SQOOP-1130: Sqoop2: Sqoop MapReduce Job Failed when max and min boundary are both null
(Mengwei Ding via Jarek Jarcec Cecho)
This commit is contained in:
parent
74ebecb7ce
commit
a3abffcd59
@ -57,7 +57,7 @@ public List<Partition> getPartitions(PartitionerContext context,ConnectionConfig
|
|||||||
if (partitionMinValue == null && partitionMaxValue == null) {
|
if (partitionMinValue == null && partitionMaxValue == null) {
|
||||||
List<Partition> partitions = new LinkedList<Partition>();
|
List<Partition> partitions = new LinkedList<Partition>();
|
||||||
GenericJdbcImportPartition partition = new GenericJdbcImportPartition();
|
GenericJdbcImportPartition partition = new GenericJdbcImportPartition();
|
||||||
partition.setConditions(partitionColumnName + "IS NULL");
|
partition.setConditions(partitionColumnName + " IS NULL");
|
||||||
partitions.add(partition);
|
partitions.add(partition);
|
||||||
return partitions;
|
return partitions;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user