most-room-32003
03/26/2022, 10:13 PMThe field at path '/dataset/assertions/assertions[0]' was declared as a non null type, but the code involved in retrieving data has wrongly returned a null value. The graphql specification requires that the parent field be set to null, or if that is non nullable that it bubble up null to its parent and so on. The non-nullable type is 'Assertion' within parent type '[Assertion!]' (code undefined)
most-room-32003
03/26/2022, 10:28 PMloud-island-88694
big-carpet-38439
03/28/2022, 1:57 AMmost-room-32003
03/28/2022, 2:00 AMhundreds-photographer-13496
03/28/2022, 12:11 PM# Construct an assertion platform object.
assertion_dataPlatformInstance = DataPlatformInstance(
platform=builder.make_data_platform_urn("great-expectations")
)
# Construct a MetadataChangeProposalWrapper object for assertion platform
assertion_dataPlatformInstance_mcp = MetadataChangeProposalWrapper(
entityType="assertion",
changeType=ChangeType.UPSERT,
entityUrn=assertionUrn(assertion_maxVal),
aspectName="dataPlatformInstance",
aspect=assertion_dataPlatformInstance,
)
# Emit Assertion entity platform aspect!
emitter.emit(assertion_dataPlatformInstance_mcp)
That got missed in example file earlier. Setting platform for assertion is mandatory for current version. I have raised a PR to take care of this - https://github.com/datahub-project/datahub/pull/4507most-room-32003
03/28/2022, 4:20 PMbig-carpet-38439
03/28/2022, 7:28 PMbig-carpet-38439
03/28/2022, 7:28 PMmost-room-32003
03/28/2022, 11:26 PMmost-room-32003
03/29/2022, 1:07 AMAssertionRunEvent
stored in the webapp, if at all? for example, partitionSpec, runId, result, etc etc. i don't see any in webapp
2. when initially defining DatasetAssertionInfo
it seems to pull checks from your enum types (AssertionStdOperator, AssertionStdAggregation, AssertionStdParameterType). my checks are home-made and a lot of what you have is not applicable to me. thoughts?big-carpet-38439
03/29/2022, 3:50 AMbig-carpet-38439
03/29/2022, 3:51 AMbig-carpet-38439
03/29/2022, 3:52 AM/**
* Native assertion type
*/
nativeType: optional string // filled with the platform specific native type string
big-carpet-38439
03/29/2022, 3:52 AM/**
* Native parameters required for the assertion.
*/
nativeParameters: optional map[string, string]