PDI时间戳:无法从索引5处的结果集获取时间戳

时间:2016-11-08 09:44:08

标签: mysql amazon-s3 pentaho-spoon

我在PDI中进行了转换,基本上从亚马逊S3桶中读取数据并将数据推送到mysql数据库。但是今天我在转换执行时面临PDI中的错误。

org.pentaho.di.core.exception.KettleDatabaseException: 
Couldn't get row from result set

Timestamp : Unable to get timestamp from resultset at index 5
Value '37467412015-04-18 13:58:472015-04-18 13:58:4700000-00-00 00:00:001:138' can not be represented as java.sql.Timestamp


at org.pentaho.di.core.database.Database.getRow(Database.java:2397)
at org.pentaho.di.core.database.Database.getRow(Database.java:2368)
at org.pentaho.di.trans.steps.tableinput.TableInput.processRow(TableInput.java:145)
at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.pentaho.di.core.exception.KettleDatabaseException:

我已经在PDI中使用了zeroDateTimeBehavior = convertToNull选项

1 个答案:

答案 0 :(得分:0)

转到数据库连接窗口,然后选择Option,然后将值放在下面

Parameter=zeroDateTimeBehavior
Value= convertToNull 

然后重新启动汤匙