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

ASF GitHub Bot commented on FLINK-4554:
---------------------------------------

Github user fhueske commented on a diff in the pull request:

    https://github.com/apache/flink/pull/2919#discussion_r91108867
  
    --- Diff: docs/dev/table_api.md ---
    @@ -2027,6 +2034,50 @@ COMPOSITE.get(INT)
           </td>
         </tr>
     
    +    <tr>
    +      <td>
    +        {% highlight java %}
    +ARRAY.at(INT)
    +{% endhighlight %}
    +      </td>
    +      <td>
    +        <p>Returns the element at a particular location in an array. The 
index starts at 1.</p>
    +      </td>
    +    </tr>
    +
    +    <tr>
    +      <td>
    +        {% highlight java %}
    +array(ANY [, ANY ]*)
    +{% endhighlight %}
    +      </td>
    +      <td>
    +        <p>Creates an array from a list of values. The array will be an 
array of objects (not primitives).</p>
    +      </td>
    +    </tr>
    +
    +    <tr>
    +      <td>
    +        {% highlight java %}
    +ARRAY.cardinality()
    +{% endhighlight %}
    +      </td>
    +      <td>
    +        <p>Returns the number of elements of an array.</p>
    +      </td>
    +    </tr>
    +
    +    <tr>
    +      <td>
    +        {% highlight scala %}
    +ARRAY.element()
    +{% endhighlight %}
    +      </td>
    +      <td>
    +        <p>Returns the sole element of an array. Returns <code>null</code> 
if the collection is empty. Throws an exception if the array has more than one 
element.</p>
    --- End diff --
    
    I think "sole element" in this context is not very clear. I'd rephrase it 
to something like: "Returns the sole element of an array with a single element."
    
    `collection` -> `array`?


> Add support for array types
> ---------------------------
>
>                 Key: FLINK-4554
>                 URL: https://issues.apache.org/jira/browse/FLINK-4554
>             Project: Flink
>          Issue Type: New Feature
>          Components: Table API & SQL
>            Reporter: Timo Walther
>            Assignee: Timo Walther
>
> Support creating arrays:
> {code}ARRAY[1, 2, 3]{code}
> Access array values:
> {code}myArray[3]{code}
> And operations like:
> {{UNNEST, UNNEST WITH ORDINALITY, CARDINALITY}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to