pinkhello commented on PR #11438:
URL:
https://github.com/apache/dolphinscheduler/pull/11438#issuecomment-1213624484
> ```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);
> ```
DATETIME FORMAT:
`yyyyMMddHHmmss`
`yyyy-MM-dd HH:mm:ss`
`yyyy-MM-dd'T'HH:mm:ss`
`yyyy MM dd HH mm ss`
`yyyy/MM/dd HH mm ss`
......
`\$\[([^\$\]]+)]` don't check format
--
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]