Transforms: GroupToMatrix transform should retain keyRowField config (#109066)

This commit is contained in:
Paul Marbach
2025-08-04 15:51:30 -04:00
committed by GitHub
parent 279adadb15
commit 96c1cd225c
2 changed files with 5 additions and 3 deletions
@@ -21,7 +21,7 @@ describe('Grouping to Matrix', () => {
const seriesA = toDataFrame({
name: 'A',
fields: [
{ name: 'Time', type: FieldType.time, values: [1000, 1001, 1002] },
{ name: 'Time', type: FieldType.time, values: [1000, 1001, 1002], config: { interval: 60000 } },
{ name: 'Value', type: FieldType.number, values: [1, 2, 3] },
],
});
@@ -33,7 +33,9 @@ describe('Grouping to Matrix', () => {
name: 'Time\\Time',
type: FieldType.time,
values: [1000, 1001, 1002],
config: {},
config: {
interval: 60000,
},
},
{
name: '1000',
@@ -108,7 +108,7 @@ export const groupingToMatrixTransformer: DataTransformerInfo<GroupingToMatrixTr
name: rowColumnField,
values: rowValues,
type: keyRowField.type,
config: {},
config: { ...keyRowField.config },
},
];