When performing:
hive -e 'select * from database.table' > /localfilesystem/mytable.txt
the column header names are in the form database.columnname
and I would like them to be columnname
only. Is there a way to supress the database in the columnname when performing the above type of query?
hive -e 'USE database; select * from table' > ...
. I'm slightly confused by the question, As I understand the column names in header aretablename.columnname
. May be you are using a different version of hive.