Solved
When I have to Refresh / Invalidate Metadata a table ?
Let's assume that I have a table test_tbl which was created through impala-shell.
I have a few questions :
- REFRESH the table only when I add new data through HIVE or HDFS commands ? That is when I am doing insert into ...through impala-shell no need for refreshing ?
- INVALIDATE METADATA of the table only when I change the structure of the table (add columns, drop partitions) through HIVE?
- DROPping partitions of a table through impala-shell (i.e alter table .. drop partition .. purge). Do I have to do REFRESH or INVALIDATE METADATA?
- DROPping partitions of a table through impala-shell . How can I compute the new stats of the partitioned table? Compute incremental stats OR Drop Incremental stats before dropping partition ?
Thanks in advance.

