branch-4.0: [Fix](function) fix partitions function throw error when query internal table without specifying catalog condition, this incompatible with show partitions command #60247 #60452
+71
−8