5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-03 05:50:31 +08:00

FIX data duplicated when found both 'TABLE PARTITION'

and 'INDEX PARTITION' on same partition.
This commit is contained in:
tootop101 2020-05-07 22:12:15 +07:00
parent a9f051c5af
commit 5f1d08907a

View File

@ -302,6 +302,7 @@ private static void bindPartitionBindVars(PreparedStatement statement,
+ " AND s.owner=t.owner " + " AND s.owner=t.owner "
+ " AND s.segment_name=t.table_name) " + " AND s.segment_name=t.table_name) "
+ " ) " + " ) "
+ "AND s.segment_type!='INDEX PARTITION'"
+ "AND s.partition_name=pl.partition_name"; + "AND s.partition_name=pl.partition_name";
PreparedStatement statement = connection.prepareStatement(sql); PreparedStatement statement = connection.prepareStatement(sql);