|
@@ -126,13 +126,13 @@ public class ClickHouseEtlService extends AbstractEtlService {
|
|
|
|
|
|
int i = 1;
|
|
int i = 1;
|
|
for (Map.Entry<String, String> entry : columnsMap.entrySet()) {
|
|
for (Map.Entry<String, String> entry : columnsMap.entrySet()) {
|
|
- String targetClolumnName = entry.getKey();
|
|
|
|
|
|
+ String targetColumnName = entry.getKey();
|
|
String srcColumnName = entry.getValue();
|
|
String srcColumnName = entry.getValue();
|
|
if (srcColumnName == null) {
|
|
if (srcColumnName == null) {
|
|
- srcColumnName = targetClolumnName;
|
|
|
|
|
|
+ srcColumnName = targetColumnName;
|
|
}
|
|
}
|
|
|
|
|
|
- Integer type = columnType.get(targetClolumnName.toLowerCase());
|
|
|
|
|
|
+ Integer type = columnType.get(targetColumnName.toLowerCase());
|
|
Object value = rs.getObject(srcColumnName);
|
|
Object value = rs.getObject(srcColumnName);
|
|
if (value != null) {
|
|
if (value != null) {
|
|
SyncUtil.setPStmt(type, pstmt, value, i);
|
|
SyncUtil.setPStmt(type, pstmt, value, i);
|