Ahazy __
04/30/2025, 7:07 AMkapa.ai
04/30/2025, 7:07 AMkapa.ai
04/30/2025, 7:07 AMyaml flags: require_explicit_package_overrides_for_builtin_materializations: false This is a temporary measure that will allow Elementary to collect samples and failed row counts for dbt tests. According to the Elementary team, they are working with the dbt-core team on a more permanent solution [Github Issue #1692](https://github.com/elementary-data/elementary/issues/1692). ### Additional Configuration Also, make sure you have properly configured the alert_fields in your model or test configuration: yaml models: - name: your_model_name meta: alert_fields: ["description", "owners", "tags", "subscribers", "result_message", "test_parameters", "test_query", "test_results_sample"] Or for tests: yaml data_tests: your_test_group: +meta: alert_fields: ["description", "owner", "subscribers", "result_message", "test_results_sample", "test_query"] By default, all fields should be included in the alert, but explicitly specifying them might help resolve the issue [Alerts Configuration](https://docs.elementary-data.com/oss/guides/alerts/alerts-configuration#alert-fields). If you're using grouped alerts (by table), note that these contain less information by nature and might not include test result samples [Alerts Configuration](https://docs.elementary-data.com/oss/guides/alerts/alerts-configuration#group-alerts-by-table). Let me know if these solutions help resolve your issue!Ahazy __
04/30/2025, 7:08 AMAhazy __
04/30/2025, 7:09 AMAhazy __
04/30/2025, 7:10 AMkapa.ai
04/30/2025, 7:10 AMkapa.ai
04/30/2025, 7:10 AM"['table', 'column', ...]") rather than an actual list. This should be formatted as a proper YAML list: yaml meta: alert_fields: ["table", "column", "description", "owners", "result_message", "test_results_sample"] 2. Empty test results: There might be no sample data to display. According to user reports in [Github Issue #1692](https://github.com/elementary-data/elementary/issues/1692), sometimes the result_rows field in the elementary_test_results model is empty, which would result in no samples being displayed. 3. Version compatibility: If you're using Elementary with dbt 1.8+, there have been reported issues with test_results_sample not appearing in alerts. Some users have found success by: - Using Elementary CLI version 0.15.1 with dbt package version 0.15.2 - Or upgrading to Elementary dbt package 0.16.1 4. Grouped alerts: If you're using slack_group_alerts_by: table, grouped alerts contain less information by nature and might not include test result samples [Alerts Configuration](https://docs.elementary-data.com/oss/guides/alerts/alerts-configuration#group-alerts-by-table). To troubleshoot further: - Check if your test has store_failures=True configured - Verify that there's actual data in the elementary_test_results table for your test - Check your Elementary and dbt versions and consider upgrading or downgrading based on the information from the GitHub issue If you're still experiencing issues after these checks, it might be worth opening a support ticket with Elementary as this could be a bug in the current version you're using.Ahazy __
04/30/2025, 7:16 AMkapa.ai
04/30/2025, 7:17 AMkapa.ai
04/30/2025, 7:17 AMalert_fields in the test configuration is incorrect. You're using a string representation of a list rather than an actual YAML list: yaml meta={ "alert_fields": "['table', 'column', 'description', 'owners', 'result_message', 'test_results_sample']" } This should be formatted as: yaml meta={ "alert_fields": ['table', 'column', 'description', 'owners', 'result_message', 'test_results_sample'] } ### Issue 2: Data Inconsistency You mentioned that: - elementary_test_results has a null result_rows for this test - test_result_rows has result data - alerts_dbt_tests has null result_table - alerts_v2 has test_rows_sample in the JSON data This inconsistency suggests there might be an issue with how the data is being processed between these tables. According to user reports in the Elementary Slack community, there have been similar issues with test result samples not appearing in alerts, especially after upgrading to dbt 1.8+ [Github Issue #1692](https://github.com/elementary-data/elementary/issues/1692). ### Potential Solutions: 1. Fix the meta configuration format as mentioned above. 2. Check your dbt and Elementary versions: - Some users reported success with Elementary dbt package version 0.16.1 - Others found that downgrading to Elementary CLI 0.15.1 with dbt package 0.15.2 resolved the issue 3. Verify the test_sample_row_count setting: If you haven't explicitly set this, try adding it to your `dbt_project.yml`: yaml vars: elementary: test_sample_row_count: 5 # or any number you prefer 4. Ensure you have the correct flag in your dbt_project.yml: yaml flags: require_explicit_package_overrides_for_builtin_materializations: false 5. Add store_failures=True to your test configuration if it's not already there. The fact that you have data in test_result_rows but not in elementary_test_results.result_rows suggests there might be an issue with how the data is being processed between these tables. This could be related to the materialization override issue in dbt 1.8+ that affects Elementary's ability to collect test samples. If you continue to experience issues after trying these solutions, it might be worth opening a support ticket with Elementary as this could be a bug in the current version you're using.Ahazy __
04/30/2025, 7:20 AMkapa.ai
04/30/2025, 7:20 AMkapa.ai
04/30/2025, 7:20 AMrequire_explicit_package_overrides_for_builtin_materializations: false) 2. Configured alert_fields to include test_results_sample (though with incorrect formatting) I recommend: 1. Fix your meta configuration format first: yaml meta={ "alert_fields": ['table', 'column', 'description', 'owners', 'result_message', 'test_results_sample'] } 2. If that doesn't resolve the issue, you might want to consider: - Ensuring you have store_failures=True in your test configuration - Checking if the issue persists with different test types - Opening a support ticket with Elementary, as this might be a bug in the current version The GitHub issue indicates that this problem is affecting multiple users with similar setups, suggesting it might be a bug in the current Elementary versions when used with dbt 1.8+. The Elementary team appears to be aware of the issue and working on a solution. I hope this helps with your troubleshooting efforts! I'm here to help if you have any other questions about Elementary Data.Ahazy __
04/30/2025, 7:55 AMkapa.ai
04/30/2025, 7:55 AMkapa.ai
04/30/2025, 7:55 AMedr monitor --group-by table 2. Or in your model configuration: yaml models: - name: transactions meta: slack_group_alerts_by: table If you prefer to receive individual alerts for each test failure rather than grouped by table, you can: 1. Remove the --group-by table flag if you're using it in your CLI command 2. Remove the slack_group_alerts_by: table configuration from your model's meta section As noted in the documentation, grouped alerts contain less information by nature compared to individual alerts [Alerts Configuration](https://docs.elementary-data.com/oss/guides/alerts/alerts-configuration#group-alerts-by-table). If you want more detailed information about each test failure, switching to individual alerts might be more appropriate for your use case.Ahazy __
04/30/2025, 7:57 AMkapa.ai
04/30/2025, 7:57 AMkapa.ai
04/30/2025, 7:57 AM--group-by table flag if you're using it in your edr monitor command 2. Check if you have slack_group_alerts_by: table configured in your source's meta section and remove it For sources, you would configure this in your schema YAML file: yaml sources: - name: your_source_name tables: - name: transactions meta: slack_group_alerts_by: individual # or remove this line entirely This should help you receive more specific alerts about your source test failures rather than having them grouped by table. If you continue to experience issues with the alert format or test_results_sample not appearing in your alerts, it might be related to the issue discussed earlier about Elementary's compatibility with newer dbt versions. I hope this helps clarify why your alerts are appearing grouped by table rather than as individual test alerts!Ahazy __
04/30/2025, 7:58 AMedr monitor --project-profile-target dev_local --profile-target dev --slack-channel-name ... --slack-token ...kapa.ai
04/30/2025, 7:58 AMkapa.ai
04/30/2025, 7:58 AMNoya Offer
04/30/2025, 1:55 PMAhazy __
05/01/2025, 7:36 AM