I have a folder in gcs bucket with a folder structure as
Xyz/Abc/dt=03-12-2021/file_03-12-2021.csv
Xyz/Abc/dt=04-12-2021/file_04-12-2021.csv
I am trying to create a dynamic partitioned table on top of the folder by executing the below queries
Set hive.exec.dynamic.partition.mode=nonstrict
Set hive.exec.dynamic.partition=true
Create table tabName (sno int, city string, address string) partitioned by (dt string);
Create table tabStg (sno int, city string, address string, dt string) row format delimited fields terminated by ‘|’ stored as textfile location ‘gcs://Xyz/Abc’;
Insert overwrite table tabName partition(dt) select sno,city,address,dt from tabStg;
After executing the insert statement I get a message as
Loading data to table db.tabName (dt=null)
And if I query as show partitions tabName;
I get all the partitions there. However if a new folder is created in the gcs bucket for a new date, the partitioned table is not able to identify that.
Any suggestions why this is happening. Am I missing anything