DataQualityRules.pdl file
namespace com.mycompany.dq
@Aspect = {
"autoRender" : true,
"name" : "customDataQualityRules",
"renderSpec" : {
"displayName" : "DQ Rules",
"displayType" : "tabular",
"key" : "rules"
}
}
record DataQualityRules {
rules: array[DataQualityRule]
}
DataQualityRule.pdl file
namespace com.mycompany.dq
import com.linkedin.schema.ArrayType
record DataQualityRule {
field: optional string
isFieldLevel: boolean
type: string
checkDefinition: optional string
url: optional string
arr: array[int]
ints: optional int
floats: optional float
}
And I am inserting this json file:
{
"rules": [
{
"field": "my_event_data",
"isFieldLevel": false,
"type": "isNull",
"checkDefinition": "n/a",
"url": "
https://github.com/datahub-project/datahub/blob/master/checks/nonNull.sql",
"arr": [1,2,3],
"ints": 1,
"floats": 2.001
},
{
"field": "timestamp",
"isFieldLevel": true,
"type": "increasing",
"checkDefinition": "n/a",
"url": "
https://github.com/datahub-project/datahub/blob/master/checks/increasing.sql",
"arr": [1,2,3],
"ints": 1,
"floats": 2.001
}
]
}
It's a different pdl that I tried but still no luck.
Here's the output as shown in the image.
There is no array of integer there. Although in my json file I am putting array.