Skip to content

Commit a93d7e0

Browse files
committed
do not handle brackets in quotes
1 parent ecf0bca commit a93d7e0

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)