You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by we...@apache.org on 2022/09/05 01:54:25 UTC

[dolphinscheduler] branch dev updated: [feature-#11689] change replaceAll to replace in method of tryExecuteSqlResolveColumnNames (#11696)

This is an automated email from the ASF dual-hosted git repository.

wenjun pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new f8b9aad239 [feature-#11689] change replaceAll to replace in method of tryExecuteSqlResolveColumnNames (#11696)
f8b9aad239 is described below

commit f8b9aad2394a63c8e10edf7bb15d62853e941406
Author: fuchanghai <33...@users.noreply.github.com>
AuthorDate: Mon Sep 5 09:54:18 2022 +0800

    [feature-#11689] change replaceAll to replace in method of tryExecuteSqlResolveColumnNames (#11696)
---
 .../java/org/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);