public boolean getAndSetPkFromErrMsg(String errMsg, String tableIdentifier) {
        String rgex = "Detail: Key \\((.*?)\\)=\\(";
        Pattern pattern = Pattern.compile(rgex);
        Matcher m = pattern.matcher(errMsg);
        List<String> pkNameList = new ArrayList<>();
        if (m.find()) {
            String[] pkNameArray = m.group(1).split(",");
            for (String pkName : pkNameArray) {
                pkNameList.add(pkName.trim());
            }
            pkNameMap.put(tableIdentifier, pkNameList);
            return true;
        }
        return false;
    }
Executes prepared statement and closes all resources of this instance.
inlong-sort/sort-flink/sort-flink-v1.13/sort-connectors/jdbc/src/main/java/org/apache/inlong/sort/jdbc/internal/JdbcMultiBatchingOutputFormat.java