I am trying to insert data into a Hive table through Dynamic partitioning the table is
CREATE EXTERNAL TABLE target_tbl_wth_partition
(
booking_id
string,
code
string,
txn_date
timestamp,
logger
string,
)
partition by (txn_date date,txn_hour int)
Values
txn_date=20160216 txn_hour=12
CREATE EXTERNAL TABLE stg_target_tbl_wth_partition
(
booking_id
string,
code
string,
txn_date
timestamp,
logger
string,
)
insert overwrite table target_tbl_wth_partition partition(txn_date,hour(txn_date)) select booking_id,code,txn_date,logger from stg_target_tbl_wth_partition;
I am not able to insert with derived columns in Dynamic partition. Any help on how to proceed with such case will be helpful.
Regards, Rakesh