hadoop - Excluding the partition field from select queries in Hive -
suppose have table definition follows in hive(the actual table has around 65 columns):
create external table s.test ( col1 string, col2 string ) partitioned (extract_date string) row format delimited fields terminated '\007' location 'xxx'; once table created, when run hive -e "describe s.test", see extract_date being 1 of columns on table. doing select * s.test returns extract_date column values. possible exclude virtual(?) column when running select queries in hive.
change property
set hive.support.quoted.identifiers=none; and run query as
select `(extract_date)?+.+` <table_name>; i tested working fine.
Comments
Post a Comment