Modify the haspartition() to check if the resolved storage table has partition.