I want to create table from some metadata of another table in hive. I'm using hive.
I know from this question that the metatdata can be retrieved from the table by INFORMATION_SCHEMA.COLUMNS
in sql:
Does HIVE
have a similar access to metadata of a table to allow me to create a table using the columns of another table? Essentially, I'm copying a table without all of the tuples.
This is the best thing I have so far:
create table <table_name>( (select <table_name> from INFORMATION_SCHEMA.COLUMNS)) row format delimited fields by '|';