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`?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---