Need to copy data from one partitioned table to another new partitioned table tried this method but doesn't work
create table if not exists box_db.table_1 partitioned by (sch_ky, at_ky, date) as select * from sand_db.table_2
Also tried
create table box_db.table_1 (id bigint, sch_val int, at_val int) partitioned by (sch_ky int, at_ky int, date string)
and insert data into it
insert into box_db.table_1 select * from sand_db.table_2
but both doesn't work