blob: 1ced07c172a3d7026a6ecfd6a4231bdc77896ede [file] [log] [blame]
--! qt:dataset:src
set hive.mapred.mode=nonstrict;
create table implicit_cast_during_insert (c1 int, c2 string)
partitioned by (p1 string) stored as orc;
explain
insert overwrite table implicit_cast_during_insert partition (p1)
select key, value, key key1 from (select * from src where key in (0,1)) q
distribute by key1 sort by key1;
insert overwrite table implicit_cast_during_insert partition (p1)
select key, value, key key1 from (select * from src where key in (0,1)) q
distribute by key1 sort by key1;
select * from implicit_cast_during_insert;
drop table implicit_cast_during_insert;