Setup:
- Created table T1 : create table t1 (name string) PARTITIONED BY (c1 string)
- Created table v1: create view v1 PARTITIONED ON (c1) select * from t1
- Inserted data in T1 with partition c1=A
- Did Alter view to add partition to V1
Noticed that:
- show partitions v1 – works fine
- show create table v1 – don’t show that view is partitioned.
- select * from v1 – gives error – “FAILED: IndexOutOfBoundsException”
- select * from v1 where c1 like '%%' - gives error – “FAILED: IndexOutOfBoundsException”
- select * from v1 where c1='A' – If partition column is specified than query works fine.
Comments
Post a Comment