Use the following command to add a new column to a table in Hive
How to copy a table in Hive to another table or create temp table?
If you want to store results of a query in a table in Hive then
Create a schema of the temp table using command CREATE TABLE ..
Execute the following command
How to create output in gzip files in Hadoop Hive ?
ALTER TABLE students ADD COLUMNS (new_col INT);
How to copy a table in Hive to another table or create temp table?
If you want to store results of a query in a table in Hive then
Create a schema of the temp table using command CREATE TABLE ..
Execute the following command
INSERT OVERWRITE TABLE temp_tablename SELECT * FROM table_name limit 10
How to create output in gzip files in Hadoop Hive ?
No comments:
Post a Comment