fix tuple_type_head
and tuple_type_tail
on UnionAll
#22911
Merged
tuple_type_head
and tuple_type_tail
on UnionAll
#22911