Re: problems with indices

2011-09-22 Thread rohan monga
e functions) are applied on keys other >> > than >> > the group-by keys. Since you are trying to get a count of id2 and have >> > the >> > index key (as well as the group-by key) on id1, the optimization is not >> > applied. Hence the same plan. &g

Re: problems with indices

2011-09-21 Thread Prajakta Kalmegh
other > than > > the group-by keys. Since you are trying to get a count of id2 and have > the > > index key (as well as the group-by key) on id1, the optimization is not > > applied. Hence the same plan. > > Hope this helps. Please let me know if you have any questions

Re: problems with indices

2011-09-20 Thread rohan monga
zation is not > applied. Hence the same plan. > Hope this helps. Please let me know if you have any questions. > Regards, > Prajakta > > >> From: rohan monga >> Date: September 19, 2011 11:26:29 PM PDT >> To: >> Subject: problems with indices >> Repl

Re: problems with indices

2011-09-20 Thread Prajakta Kalmegh
plan. Hope this helps. Please let me know if you have any questions. Regards, Prajakta > From: rohan monga > Date: September 19, 2011 11:26:29 PM PDT > To: > Subject: problems with indices > Reply-To: > > Hi, > I have a table and index that look like > > > CR

problems with indices

2011-09-19 Thread rohan monga
Hi, I have a table and index that look like CREATE TABLE table_t1(id1 int, id2 int) CREATE INDEX table_t1_idx ON TABLE table_t1(id1) AS 'org.apache.hadoop.hive.ql.index.AggregateIndexHandler' WITH DEFERRED REBUILD IDXPROPERTIES("AGGREGATES"="count(id2)"); ALTER INDEX table_t1_idx ON table_t1 REB