Table of Contents

Hive - Column

About

Relation - Column in Hive Context

Statistic

Column Statistics in Hive (HIVE-1362)

See Hive - Table-Level Statistics (Table/Partition/Column)

Built-in

https://cwiki.apache.org/confluence/display/Hive/LanguageManual+VirtualColumns

Hive 0.8.0 provides support for two virtual columns:

select 
  INPUT__FILE__NAME, 
  key, 
  BLOCK__OFFSET__INSIDE__FILE 
from 
  src;
 
select 
  key, 
  count(INPUT__FILE__NAME) 
from 
  src 
group by key 
order by key;
select
  * 
from 
  src 
where
  BLOCK__OFFSET__INSIDE__FILE > 12000
order by key;