From f8b9aad2394a63c8e10edf7bb15d62853e941406 Mon Sep 17 00:00:00 2001 From: fuchanghai <33984497+fuchanghai@users.noreply.github.com> Date: Mon, 5 Sep 2022 09:54:18 +0800 Subject: [PATCH] [feature-#11689] change replaceAll to replace in method of tryExecuteSqlResolveColumnNames (#11696) --- .../apache/dolphinscheduler/plugin/task/datax/DataxTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dolphinscheduler-task-plugin/dolphinscheduler-task-datax/src/main/java/org/apache/dolphinscheduler/plugin/task/datax/DataxTask.java b/dolphinscheduler-task-plugin/dolphinscheduler-task-datax/src/main/java/org/apache/dolphinscheduler/plugin/task/datax/DataxTask.java index 873d8f7424..f36436176f 100644 --- a/dolphinscheduler-task-plugin/dolphinscheduler-task-datax/src/main/java/org/apache/dolphinscheduler/plugin/task/datax/DataxTask.java +++ b/dolphinscheduler-task-plugin/dolphinscheduler-task-datax/src/main/java/org/apache/dolphinscheduler/plugin/task/datax/DataxTask.java @@ -567,7 +567,7 @@ public class DataxTask extends AbstractTaskExecutor { int num = md.getColumnCount(); columnNames = new String[num]; for (int i = 1; i <= num; i++) { - columnNames[i - 1] = md.getColumnName(i).replaceAll("t.",""); + columnNames[i - 1] = md.getColumnName(i).replace("t.",""); } } catch (SQLException | ExecutionException e) { logger.error(e.getMessage(), e);