From 588830aaaa9470bf36a0c9011fe07d1a9c48368f Mon Sep 17 00:00:00 2001 From: Jark Wu Date: Thu, 21 Jul 2016 23:25:44 +0800 Subject: [PATCH] [FLINK-4244] [docs] Field names for union operator do not have to be equal This closes #2280. --- docs/apis/table.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/docs/apis/table.md b/docs/apis/table.md index 817a84a1cea..cf9133c08e8 100644 --- a/docs/apis/table.md +++ b/docs/apis/table.md @@ -404,8 +404,6 @@ This section gives a brief overview of the available operators. You can find mor
-
- @@ -515,7 +513,7 @@ Table result = left.fullOuterJoin(right, "a = d").select("a, b, e");
Union -

Similar to a SQL UNION clause. Unions two tables with duplicate records removed. Both tables must have identical schema, i.e., field names and types.

+

Similar to a SQL UNION clause. Unions two tables with duplicate records removed. Both tables must have identical field types.

{% highlight java %} Table left = tableEnv.fromDataSet(ds1, "a, b, c"); Table right = tableEnv.fromDataSet(ds2, "a, b, c"); @@ -527,7 +525,7 @@ Table result = left.union(right);
UnionAll -

Similar to a SQL UNION ALL clause. Unions two tables. Both tables must have identical schema, i.e., field names and types.

+

Similar to a SQL UNION ALL clause. Unions two tables. Both tables must have identical field types.

{% highlight java %} Table left = tableEnv.fromDataSet(ds1, "a, b, c"); Table right = tableEnv.fromDataSet(ds2, "a, b, c"); @@ -611,7 +609,6 @@ Table result = in.orderBy("a.asc");
-
@@ -722,7 +719,7 @@ val result = left.fullOuterJoin(right, 'a === 'd).select('a, 'b, 'e)
Union -

Similar to a SQL UNION clause. Unions two tables with duplicate records removed, both tables must have identical schema(field names and types).

+

Similar to a SQL UNION clause. Unions two tables with duplicate records removed, both tables must have identical field types.

{% highlight scala %} val left = ds1.toTable(tableEnv, 'a, 'b, 'c); val right = ds2.toTable(tableEnv, 'a, 'b, 'c); @@ -734,7 +731,7 @@ val result = left.union(right);
UnionAll -

Similar to a SQL UNION ALL clause. Unions two tables, both tables must have identical schema(field names and types).

+

Similar to a SQL UNION ALL clause. Unions two tables, both tables must have identical field types.

{% highlight scala %} val left = ds1.toTable(tableEnv, 'a, 'b, 'c); val right = ds2.toTable(tableEnv, 'a, 'b, 'c); -- GitLab