Files
doris/docs/en/sql-manual/sql-functions/table-functions/outer-combinator.md
jiafeng.zhang 267e8b67c2 [refactor][doc]The new version of the document is online (#9272)
replace the `docs/` with `new-docs/`
2022-04-28 15:22:34 +08:00

1.3 KiB

title, language
title language
outer combinator en

outer combinator

description

Adding the _outer suffix after the function name of the table function changes the function behavior from non-outer to outer, and adds a row of Null data when the table function generates 0 rows of data.

example

mysql> select e1 from (select 1 k1) as t lateral view explode_numbers(0) tmp1 as e1;
Empty set

mysql> select e1 from (select 1 k1) as t lateral view explode_numbers_outer(0) tmp1 as e1;
+------+
| e1   |
+------+
| NULL |
+------+

keyword

outer