Tranformations: True OUTER JOIN in the join by field transformation used for tabular data (#72176)

write join for tabular data and add test
This commit is contained in:
Brendan O'Handley
2023-07-26 12:06:45 -04:00
committed by GitHub
parent 60058cb3da
commit d39ec2428e
4 changed files with 211 additions and 5 deletions

View File

@@ -14,8 +14,19 @@ import { Select, InlineFieldRow, InlineField } from '@grafana/ui';
import { useAllFieldNamesFromDataFrames } from '../utils';
const modes = [
{ value: JoinMode.outer, label: 'OUTER', description: 'Keep all rows from any table with a value' },
{ value: JoinMode.inner, label: 'INNER', description: 'Drop rows that do not match a value in all tables' },
{
value: JoinMode.outer,
label: 'OUTER (TIME SERIES)',
description:
'Keep all rows from any table with a value. Join on distinct field values. Performant and best used for time series.',
},
{
value: JoinMode.outerTabular,
label: 'OUTER (TABULAR)',
description:
'Join on a field value with dupicated values. Non performant outer join best used for tabular(SQL like) data.',
},
{ value: JoinMode.inner, label: 'INNER', description: 'Drop rows that do not match a value in all tables.' },
];
export function SeriesToFieldsTransformerEditor({ input, options, onChange }: TransformerUIProps<JoinByFieldOptions>) {