hive - Create external table with select from other table -
i using hdinsight , need delete clusters when finished running queries. however, need data gather survive day. working on queries create calculated columns table1 , insert them table2. first wanted simple test copy rows. can create external table select statement?
drop table if exists table2; create external table table2 select * table1 stored textfile location 'wasb://{container name}@{storage name}.blob.core.windows.net/';
yes have seperate 2 commands. first create external table fill it.
create external table table2(attribute string) stored textfile location 'table2'; insert overwrite table table2 select * table1;
the schema of table2 has same select query, in example consists of 1 string attribute.
Comments
Post a Comment