[
https://issues.apache.org/jira/browse/CALCITE-1379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Maryann Xue updated CALCITE-1379:
---------------------------------
Attachment: CALCITE-1379.patch
Hi, [~julianhyde], could you also review this patch? Thank you in advance!
> When expanding STAR, expand sub-fields in RecordType columns of
> StructKind.PEEK_FIELDS and StructKind.PEEK_FIELDS_DEFAULT
> -------------------------------------------------------------------------------------------------------------------------
>
> Key: CALCITE-1379
> URL: https://issues.apache.org/jira/browse/CALCITE-1379
> Project: Calcite
> Issue Type: Improvement
> Affects Versions: 1.9.0
> Reporter: Maryann Xue
> Assignee: Maryann Xue
> Priority: Minor
> Labels: phoenix
> Attachments: CALCITE-1379.patch
>
>
> This is part of CALCITE-1208 and is a Phoenix-specific requirement.
> For example, if table T's type is defined as
> {code}
> VARCHAR K0,
> VARCHAR C1,
> RecordType(INTEGER C0, INTEGER C1) F0,
> RecordType(INTEGER C0, INTEGER C2) F1
> {code}
> , 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
> {code}
> VARCHAR K0,
> VARCHAR C1,
> INTEGER F0.C0,
> INTEGER F0.C1,
> INTEGER F1.C0,
> INTEGER F1.C2
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)