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

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -