Skip to content

Commit 3ee2a1d

Browse files
committed
Merge branch '1.5_dev_split_str' into 'v1.5.0_dev'
不处理引号中的括号 See merge request !110
2 parents d81c58d + bb1aa1b commit 3ee2a1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/com/dtstack/flink/sql/util/DtStringUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ public static List<String> splitIgnoreQuota(String str, char delimiter){
8383
} else if (c == '\'' && '\\' != flag && !inQuotes) {
8484
inSingleQuotes = !inSingleQuotes;
8585
b.append(c);
86-
} else if (c == '(') {
86+
} else if (c == '(' && !inSingleQuotes && !inQuotes) {
8787
bracketLeftNum++;
8888
b.append(c);
89-
} else if (c == ')') {
89+
} else if (c == ')' && !inSingleQuotes && !inQuotes) {
9090
bracketLeftNum--;
9191
b.append(c);
9292
} else {

0 commit comments

Comments
 (0)