We have data that is partitioned by date. Our pipeline everyday add new partition to table. We also have use cases, where people are running long read queries by filtering on partitions.
We have seen the behavior, where, If there is some read query running on old partitions (Having SHARED lock), then we can't acquire lock for new partition (EXCLUSIVE).
Is there a way that HIVE recognize that, new partition will not be read by earlier query and acquire EXLUSIVE lock for that partition to increase parallelism.