Transformers: Support inner vs outer join (#53913)

This commit is contained in:
Ryan McKinley
2022-08-23 10:14:03 -07:00
committed by GitHub
parent 1766ea9fdf
commit 1d4e01f8ba
18 changed files with 1183 additions and 125 deletions

View File

@@ -109,7 +109,7 @@ export const decorateWithTableResult = (data: ExplorePanelData): Observable<Expl
// non timeseries or some mix of data we are not trying to join on anything and just try to merge them in
// single table, which may not make sense in most cases, but it's up to the user to query something sensible.
const transformer = hasOnlyTimeseries
? of(data.tableFrames).pipe(standardTransformers.seriesToColumnsTransformer.operator({}))
? of(data.tableFrames).pipe(standardTransformers.joinByFieldTransformer.operator({}))
: of(data.tableFrames).pipe(standardTransformers.mergeTransformer.operator({}));
return transformer.pipe(