hiveql - Hive index error -


i'm facing issues while building index on multiple columns in hive(0.9.0) table.

describe nas_comps; ok leg_id  int ds_name string dep_date        string crr_code        string flight_no       string orgn    string dstn    string physical_cap    int adjusted_cap    int closed_cap      int comp_code       string 

this works :

create index nas_comps_legid on table nas_comps (leg_id) 'org.apache.hadoop.hive.ql.index.compact.compactindexhandler' deferred rebuild; 

but doesn't :

    create index nas_comps_legid_compcode on table nas_comps (leg_id,comp_code) 'org.apache.hadoop.hive.ql.index.compact.compactindexhandler' deferred rebuild;  failed: error in metadata: java.lang.runtimeexception: check index columns, should appear in table being indexed. failed: execution error, return code 1 org.apache.hadoop.hive.ql.exec.ddltask 

i guess index somehow able recognize first column because failed :

create index nas_comps_compcode on table nas_comps (comp_code) 'org.apache.hadoop.hive.ql.index.compact.compactindexhandler' deferred rebuild;  failed: error in metadata: java.lang.runtimeexception: check index columns, should appear in table being indexed. failed: execution error, return code 1 org.apache.hadoop.hive.ql.exec.ddltask 

i checked this issue don't think cause.

think hive not support indexing on partitioned columns.. please check if comp code partitioned column..

as far indexing on multiple columns, should work..


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -