I have created a table with:
CREATE EXTERNAL TABLE extab (
vendorID string,
orderID string ,
ordertime string
)
location '/common_folder/data'
Then I created a partition by month and day
CREATE EXTERNAL TABLE part_extab(
endorID string,
orderID string ,
ordertime string
)
PARTITIONED by (month string, day string)
location '/common_folder/data'
Then insert data into the partitioned table
INSERT OVERWRITE TABLE
select vendorId, orderId, ordertime , month, day
FROM extab
HOW do I extract month , day from ordertime ??