ruanwenjun commented on PR #11438:
URL: 
https://github.com/apache/dolphinscheduler/pull/11438#issuecomment-1212951821

   I have find a lots error with the regex, and this PR seems doesn't fix all 
the problem.
   
   I just test with the below and get an exception.
   ```java
   Map<String, String> params = new HashMap<>();
           String sql = "select JSON_EXTRACT(json_val, CONCAT('$[aaa', id - 1, 
'].input1')) from test";
           String sqlScript = ParameterUtils.convertParameterPlaceholders(sql, 
params);
           Assert.assertEquals("select JSON_EXTRACT(json_val, CONCAT('$[aaa', 
id - 1, '].input1')) from test",
                   sqlScript);
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to