This is part of
CALCITE-1208 and is a Phoenix-specific requirement.
For example, if table T's type is defined as
, where both F0 and F1 is of StructKind.PEEK_FIELDS or StructKind.PEEK_FIELDS_DEFAULT,
"select * from T" should expand the sub-fields of F0 and F1 and has a return type of