in adb2client/src/main/java/com/alibaba/cloud/analyticdb/adbclient/AdbClient.java [994:1015]
private static void makeSureBInA(List<String> aList, List<String> bList, boolean caseSensitive) {
if (null == aList || aList.isEmpty() || null == bList || bList.isEmpty()) {
throw new RuntimeException("Column can not be null");
}
List<String> all = null;
List<String> part = null;
if (!caseSensitive) {
all = valueToLowerCase(aList);
part = valueToLowerCase(bList);
} else {
all = new ArrayList<String>(aList);
part = new ArrayList<String>(bList);
}
for (String oneValue : part) {
if (!all.contains(oneValue)) {
throw new RuntimeException(String.format("The column %s is not exist in table", oneValue));
}
}
}