handle partitioned tables