You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Danny Chan (JIRA)" <ji...@apache.org> on 2019/08/09 09:56:00 UTC
[jira] [Resolved] (CALCITE-3233) Support Row type for
SqlDataTypeSpec
[ https://issues.apache.org/jira/browse/CALCITE-3233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Danny Chan resolved CALCITE-3233.
---------------------------------
Resolution: Fixed
Fixed in [5212d6c|https://github.com/apache/calcite/commit/5212d6c47e36995943f4d955a1714bf03eb08e7e] !
> Support Row type for SqlDataTypeSpec
> ------------------------------------
>
> Key: CALCITE-3233
> URL: https://issues.apache.org/jira/browse/CALCITE-3233
> Project: Calcite
> Issue Type: Sub-task
> Components: core
> Affects Versions: 1.20.0
> Reporter: Danny Chan
> Assignee: Danny Chan
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.21.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> This is the grammar copied from SQL-2011:
> {code:sql}
> <row type> ::=
> ROW <row type body>
> <row type body> ::=
> <left paren> <field definition> [ { <comma> <field definition> }... ] <right paren>
> <field definition> ::=
> <field name> <data type>
> {code}
> We extend the grammar for every field data type to have an optional suffix:
> {code:sql}
> <field definition> ::=
> <field name> <data type> [ [ NULL | NOT NULL] ]
> {code}
> The suffix is used to indicate if this field is nullable; To keep sync with other data types, the default is not nullable.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)