doris-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yang...@apache.org
Subject [incubator-doris] branch master updated: fix alter routine load not work (#5257)
Date Wed, 20 Jan 2021 02:52:12 GMT
This is an automated email from the ASF dual-hosted git repository.

yangzhg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 83b7a23  fix alter routine load not work (#5257)
83b7a23 is described below

commit 83b7a23d5c0d4165ff370ec36db671cfb05e1295
Author: Zhengguo Yang <yangzhgg@gmail.com>
AuthorDate: Wed Jan 20 10:52:02 2021 +0800

    fix alter routine load not work (#5257)
---
 .../sql-statements/Data Manipulation/alter-routine-load.md       | 2 ++
 .../sql-statements/Data Manipulation/alter-routine-load.md       | 2 ++
 .../java/org/apache/doris/analysis/AlterRoutineLoadStmt.java     | 9 +++------
 3 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/docs/en/sql-reference/sql-statements/Data Manipulation/alter-routine-load.md
b/docs/en/sql-reference/sql-statements/Data Manipulation/alter-routine-load.md
index e2cf437..fb7c8dd 100644
--- a/docs/en/sql-reference/sql-statements/Data Manipulation/alter-routine-load.md	
+++ b/docs/en/sql-reference/sql-statements/Data Manipulation/alter-routine-load.md	
@@ -56,6 +56,8 @@ Syntax:
     8. `strip_outer_array`
     9. `strict_mode`
     10. `timezone`
+    11. `num_as_string`
+    12. `fuzzy_parse`
 
 
 3. `data_source`
diff --git a/docs/zh-CN/sql-reference/sql-statements/Data Manipulation/alter-routine-load.md
b/docs/zh-CN/sql-reference/sql-statements/Data Manipulation/alter-routine-load.md
index c814fd7..7541136 100644
--- a/docs/zh-CN/sql-reference/sql-statements/Data Manipulation/alter-routine-load.md	
+++ b/docs/zh-CN/sql-reference/sql-statements/Data Manipulation/alter-routine-load.md	
@@ -60,6 +60,8 @@ under the License.
     8. `strip_outer_array`
     9. `strict_mode`
     10. `timezone`
+    11. `num_as_string`
+    12. `fuzzy_parse`
 
 
 4. `data_source`
diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/AlterRoutineLoadStmt.java
b/fe/fe-core/src/main/java/org/apache/doris/analysis/AlterRoutineLoadStmt.java
index 69ca520..47fb380 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/analysis/AlterRoutineLoadStmt.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/AlterRoutineLoadStmt.java
@@ -180,20 +180,17 @@ public class AlterRoutineLoadStmt extends DdlStmt {
 
         if (jobProperties.containsKey(CreateRoutineLoadStmt.STRIP_OUTER_ARRAY)) {
             boolean stripOuterArray = Boolean.valueOf(jobProperties.get(CreateRoutineLoadStmt.STRIP_OUTER_ARRAY));
-            analyzedJobProperties.put(jobProperties.get(CreateRoutineLoadStmt.STRIP_OUTER_ARRAY),
-                    String.valueOf(stripOuterArray));
+            analyzedJobProperties.put(CreateRoutineLoadStmt.STRIP_OUTER_ARRAY, String.valueOf(stripOuterArray));
         }
 
         if (jobProperties.containsKey(CreateRoutineLoadStmt.NUM_AS_STRING)) {
             boolean numAsString = Boolean.valueOf(jobProperties.get(CreateRoutineLoadStmt.NUM_AS_STRING));
-            analyzedJobProperties.put(jobProperties.get(CreateRoutineLoadStmt.NUM_AS_STRING),
-                    String.valueOf(numAsString));
+            analyzedJobProperties.put(CreateRoutineLoadStmt.NUM_AS_STRING, String.valueOf(numAsString));
         }
 
         if (jobProperties.containsKey(CreateRoutineLoadStmt.FUZZY_PARSE)) {
             boolean fuzzyParse = Boolean.valueOf(jobProperties.get(CreateRoutineLoadStmt.FUZZY_PARSE));
-            analyzedJobProperties.put(jobProperties.get(CreateRoutineLoadStmt.FUZZY_PARSE),
-                String.valueOf(fuzzyParse));
+            analyzedJobProperties.put(CreateRoutineLoadStmt.FUZZY_PARSE, String.valueOf(fuzzyParse));
         }
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Mime
View raw message