Kettle处理boolean类型数据

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/WMSOK/article/details/79786540

问题描述:

使用Kettle连接一些支持boolean类型的数据库(比如postgres/greenplumn时就)作输入输出时会遇到以下错误,因为当boolean类型的数据被加载到kettle中变成了字符串'Y''N' ,当再插回另一个数据库时,就提示字符串类型不能插入boolean类型。
ERROR: column “result” is of type boolean but expression is of type character varying

解决办法:

在数据库链接中设置支持boolean类型即可。

这里写图片描述

猜你喜欢

转载自blog.csdn.net/WMSOK/article/details/79786540