re-data
re-data copied to clipboard
[BUG] test reports as success when wrong metric is set
Describe the bug With current implement, when user set a wrong metric (type-missed or any reason), the test always succeed https://github.com/re-data/dbt-re-data/blob/main/macros/tests/test_metrics.sql#L6
Although it might be by-design feature but reporting the situation as a failure might be more intuitive.
Expected behavior Report the test as failure when wrong metric is set.
To Reproduce
Run a test with not-existed. For example row_countx instead row_count
Screenshots Logs and additional context