OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

table type custom property conditions always evaluate to false while creating a workflow

Open Rohit0301 opened this issue 7 months ago • 3 comments

When configuring a checkEntityAttributesTask in a Governance Workflow with a condition on a table-type custom property (e.g., checking if any row's name column equals "john"), the condition always evaluates to false regardless of the actual data.

The workflow UI generates a broken JsonLogic rule using a flat var path:

{"==": [{"var": "extension.dp-test.rows.name"}, "john"]} The JsonLogic var operator traverses dot-separated paths sequentially. When it reaches rows, it resolves to the array [{"name":"john"}]. It then attempts to look up .name as a key on the array itself, which returns null. The condition becomes null == "john" → always false.

Rohit0301 avatar Apr 29 '26 14:04 Rohit0301

@Rohit0301 @yan-3005 any updates on this?

aniketkatkar97 avatar Jun 08 '26 05:06 aniketkatkar97

@aniketkatkar97 currently working on other priority task.

Rohit0301 avatar Jun 08 '26 13:06 Rohit0301

This is fixed here https://github.com/open-metadata/OpenMetadata/pull/33185

anuj-kumary avatar Sep 21 '26 17:09 anuj-kumary