專欄中,我需要你的幫助,在這個問題上,了Talend不能解析爲時間戳
我從表中了Talend工作,這加載數據到另一個簡單的TMAP。
我把它叫做一個神祕的錯誤,因爲它happended只爲特定日期時間
java.sql.SQLException: Could not parse column as timestamp, was: "2009-06-01 00:00:00"
數千行包含此行不生成錯誤
當我修改此日期前行2009-06-01 00:00:00到另一個或只是改變一天的部分或一個月或甚至一小時,它會變成沒有錯誤。
數據源是一個MariaDB的,目的是Mysql的數據庫
的幫助
thnks,這是部分代碼w HICH含有產生
if (colQtyInRs_tMysqlInput_5 < 6) {
row5.created_at = null;
} else {
if (rs_tMysqlInput_5.getString(6) != null) {
String dateString_tMysqlInput_5 = rs_tMysqlInput_5
.getString(6);
if (!("0000-00-00")
.equals(dateString_tMysqlInput_5)
&& !("0000-00-00 00:00:00")
.equals(dateString_tMysqlInput_5)) {
row5.created_at = rs_tMysqlInput_5
.getTimestamp(6);
} else {
row5.created_at = (java.util.Date) year0_tMysqlInput_5
.clone();
}
} else {
row5.created_at = null;
}
}
好的,這是第一步。現在,導出模式如何? – tobi6
導出架構是完全相同的架構源 –
然後,我想這個錯誤來自其中一個tWarns想告訴你出了什麼問題。 – tobi6