diff --git a/dss-framework/dss-framework-orchestrator-server/src/main/java/com/webank/wedatasphere/dss/orchestrator/server/service/impl/OrchestratorPluginServiceImpl.java b/dss-framework/dss-framework-orchestrator-server/src/main/java/com/webank/wedatasphere/dss/orchestrator/server/service/impl/OrchestratorPluginServiceImpl.java index 5c5045a22..7fa93072d 100644 --- a/dss-framework/dss-framework-orchestrator-server/src/main/java/com/webank/wedatasphere/dss/orchestrator/server/service/impl/OrchestratorPluginServiceImpl.java +++ b/dss-framework/dss-framework-orchestrator-server/src/main/java/com/webank/wedatasphere/dss/orchestrator/server/service/impl/OrchestratorPluginServiceImpl.java @@ -586,7 +586,7 @@ private List getNotContainsKeywordsNodePath(List codePaths, Stri return null; } - Pattern pattern = Pattern.compile("(create\\s+table|insert)\\s*", Pattern.CASE_INSENSITIVE); + Pattern pattern = Pattern.compile("\\b(create\\s+table|insert)\\b",Pattern.CASE_INSENSITIVE); for (GitFileContentResponse gitFileContentResponse : gitDiffFileContentResponse.getGitFileContentResponseList()) {