mirror of
https://github.com/alibaba/DataX.git
synced 2025-05-03 06:51:39 +08:00
Ensure table name to lower
This commit is contained in:
parent
a57425d558
commit
8b538d0a8d
@ -90,14 +90,14 @@ public class AdsClientProxy implements AdsProxy {
|
|||||||
throw DataXException.asDataXException(AdsWriterErrorCode.INVALID_CONFIG_VALUE,
|
throw DataXException.asDataXException(AdsWriterErrorCode.INVALID_CONFIG_VALUE,
|
||||||
"url should be in host:port format!");
|
"url should be in host:port format!");
|
||||||
}
|
}
|
||||||
|
this.table = table.toLowerCase();
|
||||||
databaseConfig.setHost(hostAndPort[0]);
|
databaseConfig.setHost(hostAndPort[0]);
|
||||||
databaseConfig.setPort(Integer.parseInt(hostAndPort[1]));
|
databaseConfig.setPort(Integer.parseInt(hostAndPort[1]));
|
||||||
databaseConfig.setUser(configuration.getString(Key.USERNAME));
|
databaseConfig.setUser(configuration.getString(Key.USERNAME));
|
||||||
databaseConfig.setPassword(configuration.getString(Key.PASSWORD));
|
databaseConfig.setPassword(configuration.getString(Key.PASSWORD));
|
||||||
databaseConfig.setDatabase(configuration.getString(Key.SCHEMA));
|
databaseConfig.setDatabase(configuration.getString(Key.SCHEMA));
|
||||||
databaseConfig.setTable(Collections.singletonList(table));
|
databaseConfig.setTable(Collections.singletonList(this.table));
|
||||||
this.table = table;
|
databaseConfig.setColumns(this.table, columns);
|
||||||
databaseConfig.setColumns(table, columns);
|
|
||||||
|
|
||||||
// 如果出现insert失败,是否跳过
|
// 如果出现insert失败,是否跳过
|
||||||
boolean ignoreInsertError = configuration.getBool("ignoreInsertError", false);
|
boolean ignoreInsertError = configuration.getBool("ignoreInsertError", false);
|
||||||
|
Loading…
Reference in New Issue
Block a user