Skip to content

Commit

Permalink
[hotfix] [docs] Fix UDTF join description in SQL docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
fhueske committed Nov 7, 2017
1 parent f1ea6a6 commit 81e1ac3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions docs/dev/table/sql.md
Original file line number Diff line number Diff line change
Expand Up @@ -440,11 +440,18 @@ FROM Orders CROSS JOIN UNNEST(tags) AS t (tag)
</td>
<td>
<p>UDTFs must be registered in the TableEnvironment. See the <a href="udfs.html">UDF documentation</a> for details on how to specify and register UDTFs. </p>
<p><b>Note:</b> Currently only literal <code>TRUE</code> can be accepted as the predicate for the left outer join against a lateral table.</p>
<p>Inner Join</p>
{% highlight sql %}
SELECT users, tag
FROM Orders LATERAL VIEW UNNEST_UDTF(tags) t AS tag
FROM Orders, LATERAL TABLE(unnest_udtf(tags)) t AS tag
{% endhighlight %}
<p>Left Outer Join</p>
{% highlight sql %}
SELECT users, tag
FROM Orders LEFT JOIN LATERAL TABLE(unnest_udtf(tags)) t AS 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>
</td>
</tr>
</tbody>
Expand Down

0 comments on commit 81e1ac3

Please sign in to comment.