You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Shuyi Chen (JIRA)" <ji...@apache.org> on 2017/06/26 06:00:00 UTC

[jira] [Commented] (FLINK-7003) "select * from" in Flink SQL should not flatten all fields in the table by default

    [ https://issues.apache.org/jira/browse/FLINK-7003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16062561#comment-16062561 ] 

Shuyi Chen commented on FLINK-7003:
-----------------------------------

I've created https://issues.apache.org/jira/browse/CALCITE-1856 to add a new option in Calcite to allow PEEK_FIELDS but no star flattening.

> "select * from" in Flink SQL should not flatten all fields in the table by default
> ----------------------------------------------------------------------------------
>
>                 Key: FLINK-7003
>                 URL: https://issues.apache.org/jira/browse/FLINK-7003
>             Project: Flink
>          Issue Type: Bug
>            Reporter: Shuyi Chen
>
> Currently, CompositeRelDataType is extended from RelRecordType(StructKind.PEEK_FIELDS, ...).  In Calcite, StructKind.PEEK_FIELDS would allow us to peek fields for nested types. However, when we use "select * from", calcite will flatten all nested fields that is marked as StructKind.PEEK_FIELDS in the table. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)