Talend 中的数据模型没有发生任何更改的 Int 到 Date 转换错误

Int to Date conversion error without any changes happening in data model in Talend

直到两天前我才开始接收 ETL:

Exception in component tDBInput_1 (test4) java.sql.SQLDataException: Unsupported conversion from TIMESTAMP to java.lang.Integer

不知道这里发生了什么。

看起来您的 tDb_Input_1 中的模式在组件内部模式和您的数据库 table 类型之间是不一样的。例如 product_line_id 在您的 table 中是一个 varchar,在您的架构中是一个 Integer。

尝试在您的 tDBInput 组件中重新定义您的架构。

你可以这样做:

  • 在元数据中定义您的数据库连接(在数据库连接中)
  • 从您的数据库中检索架构,以便在 Talend 中自动导入架构。 (见截图)
  • 使用在您的组件中检索到的架构并传播到所有作业。