Alert rule validation error caused by table name containing 'eval' substring
Affected module Does it impact the UI, backend or Ingestion Framework? UI
Describe the bug
When adding a specific table to an already configured alert, the following error occurs:
Expression contains potentially unsafe pattern: eval. Only use approved policy functions with @Function annotations.
The issue only happens when the table name contains the substring eval (e.g., DWH_Redshift.analytics_db.core.customer_evaluations).
To Reproduce
Go to Alerts and select an existing alert (e.g., Source: Test Case, Filters: Table Name a Test Case Belongs To, Trigger: Get Test Case Status Updates as Aborted & Failed). Add a table with name containing eval (e.g., car_evaluations). Save or test the alert.
Expected behavior The alert should be created/updated successfully regardless of the table name.
Version:
- OS: [e.g. iOS]
- Python version:
- OpenMetadata version: [e.g. 1.10.2]
- OpenMetadata Ingestion package version: [e.g.
openmetadata-ingestion[docker]==XYZ]
Additional context
- This issue seems to be triggered because the substring eval (a Python built-in function) appears in the table name, and the system is likely misinterpreting it as a potentially unsafe function call.
- The alert configuration works correctly for any other table name not containing eval.