[ 
https://issues.apache.org/jira/browse/CALCITE-3233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Danny Chan updated CALCITE-3233:
--------------------------------
    Description: 
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.

  was:
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}


> 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: 10m
>  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)

Reply via email to