in adb2client/src/main/java/com/alibaba/cloud/analyticdb/adbclient/AdbClient.java [957:980]
private static void makeSureNoValueDuplicate(List<String> aList, boolean caseSensitive) {
if (null == aList || aList.isEmpty()) {
throw new RuntimeException("Column can not be null");
}
if (1 == aList.size()) {
return;
} else {
List<String> list = null;
if (!caseSensitive) {
list = valueToLowerCase(aList);
} else {
list = new ArrayList<String>(aList);
}
Collections.sort(list);
for (int i = 0, len = list.size() - 1; i < len; i++) {
if (list.get(i).equals(list.get(i + 1))) {
throw new RuntimeException(String.format("The column %s in config must be uniq", list.get(i)));
}
}
}
}