我在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选项
答案 0 :(得分:0)
转到数据库连接窗口,然后选择Option
,然后将值放在下面
Parameter=zeroDateTimeBehavior
Value= convertToNull
然后重新启动汤匙