buu-nguyen commented on code in PR #597:
URL: 
https://github.com/apache/doris-flink-connector/pull/597#discussion_r2116096861


##########
flink-doris-connector/src/main/java/org/apache/doris/flink/tools/cdc/CdcTools.java:
##########
@@ -221,7 +223,33 @@ public static Map<String, String> 
getConfigMap(MultipleParameterTool params, Str
         for (String param : params.getMultiParameter(key)) {
             String[] kv = param.split("=", 2);
             if (kv.length == 2) {
-                map.put(kv[0].trim(), kv[1].trim());
+                String originalValue = kv[1].trim();
+                String resolvedValue = originalValue;
+
+                // Regex to find environment variables like $VAR or ${VAR}
+                Pattern pattern =
+                        Pattern.compile(
+                                
"\\$(?:([A-Za-z_][A-Za-z0-9_]*)|\\{([A-Za-z_][A-Za-z0-9_]*)\\})");

Review Comment:
   Sure, i will make a change.



-- 
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...@doris.apache.org

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


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

Reply via email to