hailin0 commented on code in PR #5581:
URL: https://github.com/apache/seatunnel/pull/5581#discussion_r1369861920
##########
seatunnel-api/src/main/java/org/apache/seatunnel/api/configuration/util/ConfigUtil.java:
##########
@@ -83,6 +83,12 @@ public static <T> T convertValue(Object rawValue, Option<T>
option) {
}
static <T> List<T> convertToList(Object rawValue, Class<T> clazz) {
+ if (rawValue instanceof List) {
+ return ((List<?>) rawValue)
+ .stream()
+ .map(value ->
convertValue(convertToJsonString(value), clazz))
Review Comment:
fix bug
```
table_list = [{xxx=xxx},{xxx=xxx}]
```
##########
seatunnel-connectors-v2/connector-jdbc/src/main/java/org/apache/seatunnel/connectors/seatunnel/jdbc/catalog/mysql/MySqlCatalog.java:
##########
@@ -47,7 +50,7 @@ public class MySqlCatalog extends AbstractJdbcCatalog {
private static final MysqlDataTypeConvertor DATA_TYPE_CONVERTOR = new
MysqlDataTypeConvertor();
private static final String SELECT_COLUMNS_SQL_TEMPLATE =
- "SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA =
'%s' AND TABLE_NAME ='%s'";
+ "SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA =
'%s' AND TABLE_NAME ='%s' ORDER BY ORDINAL_POSITION ASC";
Review Comment:
orderby
--
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]