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

发布时间:2016年03月29日 // 分类:数据 // 2 条评论

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

2016/03/27 02:50:45 - /DW_门店基本信息 - 为了转换解除补丁开始  [/DW_门店基本信息]
2016/03/27 02:50:45 - 表输入.0 - ERROR (version 6.0.1.0-386, build 1 from 2015-12-03 11.37.25 by buildguy) : Unexpected error
2016/03/27 02:50:45 - 表输入.0 - ERROR (version 6.0.1.0-386, build 1 from 2015-12-03 11.37.25 by buildguy) : org.pentaho.di.core.exception.KettleDatabaseException: 
2016/03/27 02:50:45 - 表输入.0 - Couldn't get row from result set
2016/03/27 02:50:45 - 表输入.0 - 
2016/03/27 02:50:45 - 表输入.0 - Timestamp : Unable to get timestamp from resultset at index 30
2016/03/27 02:50:45 - 表输入.0 - Value '132016-01-19 11:31:02

Timestamp : Unable to get timestamp from resultset at index 30

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

zeroDateTimeBehavior=convertToNull

如图所示:

数据库连接-选项

问题解决。

本文固定链接
https://www.ywlib.com/archives/61.html

标签
kettle, pentaho, spoon, timestamp

已有 2 条 关于 " Pentaho Spoon (Kettle) 出现 Timestamp :Unable to get timestamp from resultset at index 30 错误的解决 "的评论.

  1. [...]《Pentaho Spoon (Kettle) 出现 Timestamp :Unable to get timestamp from resultset at index 30 错误的解决》http://www.ywlib.com/archives/61.html (from 一闻自习室)[...]

  2. [...]《Pentaho Spoon (Kettle) 出现 Timestamp :Unable to get timestamp from resultset at index 30 错误的解决》http://www.ywlib.com/archives/61.html (from 一闻自习室)[...]

添加新评论 »