Skip to content

Commit

Permalink
fix alter routine load not work (#5257)
Browse files Browse the repository at this point in the history
  • Loading branch information
yangzhg authored Jan 20, 2021
1 parent 3a6476b commit 83b7a23
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ Syntax:
8. `strip_outer_array`
9. `strict_mode`
10. `timezone`
11. `num_as_string`
12. `fuzzy_parse`


3. `data_source`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,20 +180,17 @@ private void checkJobProperties() throws UserException {

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));
}
}

Expand Down

0 comments on commit 83b7a23

Please sign in to comment.