Fix to handle nested hive partitions in cached mode.