gentle-lifeguard-88494
02/24/2023, 1:15 AMnamespace com.mycompany.dq
record distinctColValues {
column: string
distinctValues: array[string]
}
File: distinctValues.pdl
namespace com.mycompany.dq
@Aspect = {
"name": "distinctValues",
"autoRender": true,
"renderSpec": {
"displayType": "tabular", // or properties
"key": "distinct_key",
"displayName": "Distinct Values"
}
}
record distinctValues {
distinct_key: array[distinctColValues]
}
}
I put some screenshots below. I see the data in GraphQL, just not in the UI
Any help would be appreciated, thanks!bulky-soccer-26729
02/24/2023, 3:13 PMtabular display type, you have distinctValues set up properly, but here we're expecting distinctColValues to be an object of key: value pairs. So what we're doing is getting the keys (in this case they would be column and distinctValues and making those the columns in the view. Then the values would be the row values. And then every distinctColValues object would be a new row here.bulky-soccer-26729
02/24/2023, 3:14 PMdistinctValues shouldn't be an array, a string, or boolean, or some other primitive type that isn't a collectiongentle-lifeguard-88494
02/24/2023, 6:39 PMbulky-soccer-26729
02/24/2023, 6:43 PMgentle-lifeguard-88494
02/24/2023, 6:43 PMbulky-soccer-26729
02/24/2023, 6:45 PM