Docs: corrects outer join example (#58348)

* corrects outer join example

* Update docs/sources/panels-visualizations/query-transform-data/transform-data/index.md

* adds query tables back in
This commit is contained in:
Christopher Moyer 2022-11-07 13:40:09 -06:00 committed by GitHub
parent 93c1fbbe3f
commit 0315f6317e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -359,11 +359,9 @@ The result after applying the inner join transformation looks like the following
#### Outer join
An outer join includes all data from an inner join and rows where values do not match in every input.
An outer join includes all data from an inner join and rows where values do not match in every input. While the inner join joins Query A and Query B on the time field, the outer join includes all rows that dont match on the time field.
Use this transformation to combine the results from multiple queries (combining on a passed join field or the first time column) into one result, and drop rows where a successful join cannot occur - performing an inner join.
In the following example, two queries return table data. It is visualized as two tables before applying the inner join transformation.
In the following example, two queries return table data. It is visualized as two tables before applying the outer join transformation.
Query A:
@ -381,10 +379,12 @@ Query B:
| 2020-07-07 11:24:20 | server 2 | 5 |
| 2020-07-07 11:04:20 | server 3 | 10 |
The result after applying the inner join transformation looks like the following:
The result after applying the outer join transformation looks like the following:
| Time | Job | Uptime | Server | Errors |
| ------------------- | ------- | --------- | -------- | ------ |
| 2020-07-07 11:04:20 | | | server 3 | 10 |
| 2020-07-07 11:14:20 | postgre | 345001233 | | |
| 2020-07-07 11:34:20 | node | 25260122 | server 1 | 15 |
| 2020-07-07 11:24:20 | postgre | 123001233 | server 2 | 5 |