Mihai Budiu created CALCITE-7603:
------------------------------------

             Summary: Support ROW constructors that name fields
                 Key: CALCITE-7603
                 URL: https://issues.apache.org/jira/browse/CALCITE-7603
             Project: Calcite
          Issue Type: Improvement
          Components: core
    Affects Versions: 1.42.0
            Reporter: Mihai Budiu


Trino apparently supports the following syntax:
{code:java}
ROW(a => 1, b => 2) {code}
This seems like a very useful feature to have. Today the Calcite ROW 
constructor builds a ROW type with compiler-generated field names. This would 
also help resolve CALCITE-7602 

Alternative syntaxes are possible. BigQuery has an alternative
{code:java}
STRUCT(1 AS a) {code}
(BigQuery uses STRUCT instead of ROW)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to