[
https://issues.apache.org/jira/browse/HCATALOG-23?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13178586#comment-13178586
]
Aniket Mokashi commented on HCATALOG-23:
----------------------------------------
hive> create table student_rc_int (name string, age int) partitioned by (zip
int) stored as rcfile;
-- load data
hive> show partitions student_rc_int;
OK
zip=94040
grunt> student_int = load 'amokashi.student_rc_int' using
org.apache.hcatalog.pig.HCatLoader();
grunt> fstud_int = filter student_int by zip == 94040;
grunt> dump fstud_int;
We get following exception,
Caused by: java.io.IOException: MetaException(message:Error parsing partition
filter : MismatchedTokenException(8!=9))
at
org.apache.hcatalog.mapreduce.HCatInputFormat.setInput(HCatInputFormat.java:42)
at org.apache.hcatalog.pig.HCatLoader.setLocation(HCatLoader.java:90)
at
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.getJob(JobControlCompiler.java:387)
... 19 more
Caused by: MetaException(message:Error parsing partition filter :
MismatchedTokenException(8!=9))
at
org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$get_partitions_by_filter_result.read(ThriftHiveMetastore.java:38451)
at
org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.recv_get_partitions_by_filter(ThriftHiveMetastore.java:1808)
at
org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.get_partitions_by_filter(ThriftHiveMetastore.java:1780)
at
org.apache.hadoop.hive.metastore.HiveMetaStoreClient.listPartitionsByFilter(HiveMetaStoreClient.java:640)
at
org.apache.hcatalog.mapreduce.InitializeInput.setInput(InitializeInput.java:83)
at
org.apache.hcatalog.mapreduce.HCatInputFormat.setInput(HCatInputFormat.java:40)
... 21 more
I m using Hcatalog-0.2 version. I think Hive 2226 fixes this. Can anyone
confirm?
> hcat client does not support partition keys other than string, when creating
> tables
> -----------------------------------------------------------------------------------
>
> Key: HCATALOG-23
> URL: https://issues.apache.org/jira/browse/HCATALOG-23
> Project: HCatalog
> Issue Type: New Feature
> Affects Versions: 0.1
> Reporter: Mac Yang
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira