This is an automated email from the ASF dual-hosted git repository. twalthr pushed a commit to branch release-1.11 in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.11 by this push: new 9816058 [FLINK-19140][docs] Fix UDTF documentation which uses wrong alias 9816058 is described below commit 98160583d408cd06c792bb1981843a7f8f4b5a63 Author: Benchao Li <libenc...@gmail.com> AuthorDate: Sun Sep 20 18:36:18 2020 +0800 [FLINK-19140][docs] Fix UDTF documentation which uses wrong alias This closes #13430. --- docs/dev/table/sql/queries.md | 4 ++-- docs/dev/table/sql/queries.zh.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/dev/table/sql/queries.md b/docs/dev/table/sql/queries.md index 2450845..20cf763 100644 --- a/docs/dev/table/sql/queries.md +++ b/docs/dev/table/sql/queries.md @@ -664,14 +664,14 @@ FROM Orders CROSS JOIN UNNEST(tags) AS t (tag) <p>A row of the left (outer) table is dropped, if its table function call returns an empty result.</p> {% highlight sql %} SELECT users, tag -FROM Orders, LATERAL TABLE(unnest_udtf(tags)) t AS tag +FROM Orders, LATERAL TABLE(unnest_udtf(tags)) AS t(tag) {% endhighlight %} <p><b>Left Outer Join</b></p> <p>If a table function call returns an empty result, the corresponding outer row is preserved and the result padded with null values.</p> {% highlight sql %} SELECT users, tag -FROM Orders LEFT JOIN LATERAL TABLE(unnest_udtf(tags)) t AS tag ON TRUE +FROM Orders LEFT JOIN LATERAL TABLE(unnest_udtf(tags)) AS t(tag) ON TRUE {% endhighlight %} <p><b>Note:</b> Currently, only literal <code>TRUE</code> is supported as predicate for a left outer join against a lateral table.</p> diff --git a/docs/dev/table/sql/queries.zh.md b/docs/dev/table/sql/queries.zh.md index e216e07..9523d48 100644 --- a/docs/dev/table/sql/queries.zh.md +++ b/docs/dev/table/sql/queries.zh.md @@ -662,14 +662,14 @@ FROM Orders CROSS JOIN UNNEST(tags) AS t (tag) <p>若表函数返回了空结果,左表(outer)的行将会被删除。</p> {% highlight sql %} SELECT users, tag -FROM Orders, LATERAL TABLE(unnest_udtf(tags)) t AS tag +FROM Orders, LATERAL TABLE(unnest_udtf(tags)) AS t(tag) {% endhighlight %} <p><b>Left Outer Join</b></p> <p>若表函数返回了空结果,将会保留相对应的外部行并用空值填充结果。</p> {% highlight sql %} SELECT users, tag -FROM Orders LEFT JOIN LATERAL TABLE(unnest_udtf(tags)) t AS tag ON TRUE +FROM Orders LEFT JOIN LATERAL TABLE(unnest_udtf(tags)) AS t(tag) ON TRUE {% endhighlight %} <p><b>注意:</b> 当前仅支持文本常量 <code>TRUE</code> 作为针对横向表的左外部联接的谓词。</p>