[ https://issues.apache.org/jira/browse/CALCITE-1431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15566998#comment-15566998 ]
Julian Hyde commented on CALCITE-1431: -------------------------------------- I can imagine that a SQL test is hard. But maybe you could call copyType within a test that uses a MockCatalogReader, and check the resulting type? > RelDataTypeFactoryImpl.copyType() did not copy StructKind > --------------------------------------------------------- > > Key: CALCITE-1431 > URL: https://issues.apache.org/jira/browse/CALCITE-1431 > Project: Calcite > Issue Type: Bug > Components: core > Reporter: Maryann Xue > Assignee: Maryann Xue > Priority: Minor > Labels: phoenix > Fix For: 1.11.0 > > > Now that StructKind has been introduced as an attribute of RelDataType by > CALCITE-1208, when copying a RecordType, we should also copy its StructKind. > This would be an issue in view expansion, in which columns could not be > resolved from a view the same way as they would from its original table. -- This message was sent by Atlassian JIRA (v6.3.4#6332)