类型转换猪hcatalog [英] Type conversion pig hcatalog
本文介绍了类型转换猪hcatalog的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
问题是,hcatalog不支持时间戳类型。
它将在hive 0.13下支持,他们对已经解决的这个问题有疑问,你可以在 https://issues.apache.org/jira/browse/HIVE-5814
I use HCatalog version 0.4. I have a table in hive 'abc' which has a column with datatype 'timestamp'. When i try to run a pig script like this "raw_data = load 'abc' using org.apache.hcatalog.pig.HCatLoader();" i get an error saying "java.lang.TypeNotPresentException: Type timestamp not present".
解决方案
The problem is that hcatalog doesn’t support timestamp type. It will be supported under hive 0.13, they have an issue about this problem that was already solved, you can see the issue in https://issues.apache.org/jira/browse/HIVE-5814
这篇关于类型转换猪hcatalog的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文