hawk9821 commented on code in PR #8869:
URL: https://github.com/apache/seatunnel/pull/8869#discussion_r2009818621


##########
seatunnel-common/src/main/java/org/apache/seatunnel/common/utils/JdbcUrlUtil.java:
##########
@@ -22,31 +22,146 @@
 import lombok.Data;
 
 import java.io.Serializable;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import java.nio.charset.StandardCharsets;
+import java.util.Collections;
+import java.util.LinkedHashMap;
+import java.util.Map;
 import java.util.Optional;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
+import java.util.stream.Collectors;
 
 public final class JdbcUrlUtil {
     private static final Pattern URL_PATTERN =
             Pattern.compile(
                     
"^(?<url>jdbc:.+?//(?<host>.+?):(?<port>\\d+?))(/(?<database>.*?))*(?<suffix>\\?.*)*$");
 
+    private static final Pattern SQLSERVER_URL_PATTERN =
+            Pattern.compile(
+                    
"^(?<url>jdbc:sqlserver://([a-zA-Z0-9.-]+)(?::(\\d+))?(;(?<param>[^=]+)\\s*=(?<value>[^;]+);?)*)$");
+
+    private static final Pattern ORACLE_URL_PATTERN =
+            Pattern.compile(
+                    
"^(?<url>jdbc:oracle:thin:@(//)?(?<host>[^:]+):(?<port>\\d+))(/(?<database>.*?))*(?<suffix>\\?.*)*$");
+
+    private static final Pattern HANA_URL_PATTERN =
+            
Pattern.compile("^(?<url>jdbc:sap://(?<host>[^:]+):(?<port>\\d+)/?(?<params>.*?))$");

Review Comment:
   fixed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to