Skip to content

Commit

Permalink
update documentation, and minor fix for MultisetRelDataType
Browse files Browse the repository at this point in the history
  • Loading branch information
Shuyi Chen committed Sep 21, 2017
1 parent d58071e commit 1e3dadc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion docs/dev/table/sql.md
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,7 @@ The SQL runtime is built on top of Flink's DataSet and DataStream APIs. Internal
| `Types.PRIMITIVE_ARRAY`| `ARRAY` | e.g. `int[]` |
| `Types.OBJECT_ARRAY` | `ARRAY` | e.g. `java.lang.Byte[]`|
| `Types.MAP` | `MAP` | `java.util.HashMap` |
| `Types.MULTISET` | `MULTISET` | `java.util.HashMap` |


Advanced types such as generic types, composite types (e.g. POJOs or Tuples), and array types (object or primitive arrays) can be fields of a row.
Expand Down Expand Up @@ -2107,6 +2108,17 @@ VAR_SAMP(value)
<p>Returns the sample variance (square of the sample standard deviation) of the numeric field across all input values.</p>
</td>
</tr>

<tr>
<td>
{% highlight text %}
COLLECT(value)
{% endhighlight %}
</td>
<td>
<p>Returns a multiset of the <i>value</i>s.</p>
</td>
</tr>
</tbody>
</table>

Expand Down Expand Up @@ -2226,7 +2238,6 @@ The following functions are not supported yet:

- Binary string operators and functions
- System functions
- Collection functions
- Distinct aggregate functions like COUNT DISTINCT

{% top %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class MultisetRelDataType(
elementType,
isNullable) {

override def toString = s"MULTISET($typeInfo)"
override def toString = s"MULTISET($elementType)"

def canEqual(other: Any): Boolean = other.isInstanceOf[MultisetRelDataType]

Expand Down

0 comments on commit 1e3dadc

Please sign in to comment.