This is an automated email from the ASF dual-hosted git repository.
abhishek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git
The following commit(s) were added to refs/heads/master by this push:
new b26f1b4a5d Update datasources.md: Fix Documentation. (#13865)
b26f1b4a5d is described below
commit b26f1b4a5ded113926572f6ad164a85451057512
Author: Apoorv Gupta <[email protected]>
AuthorDate: Wed Mar 1 20:29:15 2023 +0530
Update datasources.md: Fix Documentation. (#13865)
Fixed documentation to clarify that union query cant be run over query
datasources.
---
docs/querying/datasource.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/querying/datasource.md b/docs/querying/datasource.md
index a34159eca3..0a16e1d16b 100644
--- a/docs/querying/datasource.md
+++ b/docs/querying/datasource.md
@@ -233,7 +233,7 @@ FROM
<!--END_DOCUSAURUS_CODE_TABS-->
Query datasources allow you to issue subqueries. In native queries, they can
appear anywhere that accepts a
-`dataSource`. In SQL, they can appear in the following places, always
surrounded by parentheses:
+`dataSource` (except underneath a `union`). In SQL, they can appear in the
following places, always surrounded by parentheses:
- The FROM clause: `FROM (<subquery>)`.
- As inputs to a JOIN: `<table-or-subquery-1> t1 INNER JOIN
<table-or-subquery-2> t2 ON t1.<col1> = t2.<col2>`.
@@ -423,4 +423,4 @@ The `unnest` datasource uses the following syntax:
* `dataSource.outputName`: The name you want to assign to the column that will
contain the unnested values. You can replace the source column with the
unnested column by specifying the source column's name or a new column by
specifying a different name. Outputting it to a new column can help you verify
that you get the results that you expect but isn't required.
* `dataSource.allowList`: Optional. The subset of values you want to unnest.
-To learn more about how to use the `unnest` datasource, see the [unnest
tutorial](../tutorials/tutorial-unnest-datasource.md).
\ No newline at end of file
+To learn more about how to use the `unnest` datasource, see the [unnest
tutorial](../tutorials/tutorial-unnest-datasource.md).
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]