Added section on union data sources

This commit is contained in:
Igal Levy 2014-10-29 12:32:24 -07:00
parent 3b29e77866
commit 479c196aa4
1 changed files with 15 additions and 2 deletions

View File

@ -1,10 +1,13 @@
---
layout: doc_page
---
A data source is the Druid equivalent of a database table. However, a query can also masquerade as a data source, providing subquery-like functionality. Query data sources are currently only supported by [GroupBy](GroupByQuery.html) queries.
## Datasources
A data source is the Druid equivalent of a database table. However, a query can also masquerade as a data source, providing subquery-like functionality. Query data sources are currently supported only by [GroupBy](GroupByQuery.html) queries.
### Table Data Source
The table data source the most common type. It's represented by a string, or by the full structure:
The table data source is the most common type. It's represented by a string, or by the full structure:
```json
{
@ -13,6 +16,16 @@ The table data source the most common type. It's represented by a string, or by
}
```
### Union Data Source
This data source unions two table data sources.
```json
{
"type": "union",
"dataSources": ["<string_value1>", "string_value2>"]
}
```
### Query Data Source
```json
{