Pentaho Spoon (Kettle) 出现 Timestamp :Unable to get timestamp from resultset at index 30 错误的解决

Pentaho Spoon (Kettle) 出现 Timestamp :Unable to get timestamp from resultset at index 30 错误的解决

前言

在做ETL的时候,连接MySQL读取含有timestamp类型的表,出现如下错误:

Timestamp : Unable to get timestamp from resultset at index 30

据说是MySQL自身的问题。解决方法也很简单,在Spoon的数据库连接中,打开选项,加入一行命令参数:

zeroDateTimeBehavior=convertToNull

如图所示:

数据库连接-选项

问题解决。

 

转载

posted @ 2021-01-21 11:40  初雨诗清风  阅读(556)  评论(0编辑  收藏  举报