类型转换猪目录 [英] Type conversion pig hcatalog
问题描述
我使用 HCatalog 0.4 版.我在 hive 'abc' 中有一个表,它有一个数据类型为 'timestamp' 的列.当我尝试运行像这样的猪脚本raw_data = load 'abc' using org.apache.hcatalog.pig.HCatLoader();"我收到一条错误消息,指出java.lang.TypeNotPresentException:类型时间戳不存在".
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".
推荐答案
问题是 hcatalog 不支持时间戳类型.它将在 hive 0.13 下得到支持,他们有一个关于这个问题的问题已经解决了,你可以在 https://issues.apache.org/jira/browse/HIVE-5814
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
这篇关于类型转换猪目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!