I tried to create two tables using hive sql as following:
create table t2 as select id, name, date, address, time, loc from (select row_number ( ) over ( P