| -- In this test, the stats publisher does not exists. |
| -- If stats need not be reliable, the statement succeeds. However, if stats are supposed |
| -- to be reliable (by setting hive.stats.reliable to true), the insert statement fails |
| -- because stats cannot be collected for this statement |
| |
| create table tmptable(key string, value string); |
| |
| set hive.stats.dbclass=dummy; |
| set hive.stats.default.publisher=""; |
| set hive.stats.default.aggregator=org.apache.hadoop.hive.ql.stats.DummyStatsAggregator; |
| |
| set hive.stats.reliable=false; |
| INSERT OVERWRITE TABLE tmptable select * from src; |
| |
| set hive.stats.reliable=true; |
| INSERT OVERWRITE TABLE tmptable select * from src; |