Not Now
08/15/2025, 4:52 PMkapa.ai
08/15/2025, 4:52 PMkapa.ai
08/15/2025, 4:52 PMdbt run --select elementary --full-refresh If you are using a non-standard warehouse like ClickHouse, it's possible that some macros or models expect certain columns (like 'elementary_test_results_id') to exist, but they are missing due to incomplete setup or lack of official support. Recommended steps: 1. Ensure you are using compatible versions of the Elementary dbt package and CLI. 2. Run dbt run --select elementary --full-refresh to recreate all Elementary tables and columns. 3. Check if ClickHouse is officially supported by Elementary. If not, you may encounter compatibility issues that are not documented in the knowledge sources. If the issue persists after these steps, the knowledge sources do not provide a direct solution for ClickHouse-specific errors. You may need to reach out to the Elementary team for further assistance or consider using a supported data warehouse backend. I'm sorry, but there's no information about ClickHouse-specific support or this exact error in the knowledge sources provided. If you need further help, contacting the Elementary team or community is recommended.Not Now
08/15/2025, 4:55 PMNot Now
08/15/2025, 4:55 PMkapa.ai
08/15/2025, 4:55 PMkapa.ai
08/15/2025, 4:55 PMdbt deps and dbt run --select elementary to ensure all models and tables are up to date.Not Now
08/15/2025, 5:32 PMkapa.ai
08/15/2025, 5:32 PMkapa.ai
08/15/2025, 5:33 PMelementary.test_result_rows table might be empty: 1. dbt Version 1.8+ Materialization Change If you are using dbt 1.8 or above, there was a change in how materializations work that can prevent test_result_rows from being populated. To fix this, add the following flag to your `dbt_project.yml`: yaml flags: require_explicit_package_overrides_for_builtin_materializations: false This allows Elementary to override dbt's default materializations and is required for proper operation on dbt 1.8+ [see details](https://docs.elementary-data.com/oss/quickstart/quickstart-cli-package#important-allowing-elementary-to-override-dbts-default-materializations-relevant-from-dbt-1-8) https://slack.com/archives/C02CTC89LAX/p1734111312018389. 2. No Failing Test Rows The table only stores sample rows from failed tests. If your tests are all passing, or if you haven't configured tests to store sample rows, the table will remain empty. 3. Materialization or Configuration Issues If the Elementary models are not materialized as tables (for example, if they are materialized as views), data cannot be inserted. Make sure your dbt_project.yml does not override the materialization for Elementary models. The correct configuration should look like: yaml models: elementary: +schema: 'elementary' +materialized: table [See troubleshooting guide](https://docs.elementary-data.com/oss/general/troubleshooting). 4. Not Running Tests After Deploying Elementary After running dbt run --select elementary, you must also run dbt test to populate the tables. If you haven't run tests after deploying the package, the table will be empty https://slack.com/archives/C02CTC89LAX/p1660748994945629. 5. Target/Schema Mismatch If you run dbt run --select elementary and dbt test on different targets or schemas, the results may not be written to the expected location. Always use the same target and schema for both commands https://slack.com/archives/C02CTC89LAX/p1684095583307509. 6. Custom Test or Macro Issues Some custom tests or project macros may interfere with the on-run-end hook that populates this table. Check your logs for any errors or warnings related to Elementary hooks https://slack.com/archives/C02CTC89LAX/p1718816885919229. If you have checked all of the above and the table is still empty, review your dbt.log and edr.log files for errors, and consider reaching out to the Elementary support team for further assistance.Not Now
08/16/2025, 11:02 AMkapa.ai
08/16/2025, 11:02 AMkapa.ai
08/16/2025, 11:03 AMelementary.test_result_rows table, you need to run dbt tests that produce failing rows. This table is specifically designed to store a sample of the rows that caused a test to fail. Here’s how you can do it: 1. Ensure You Have Failing Tests The test_result_rows table only gets populated when there are failed test rows. If all your tests pass, the table will remain empty. You can create or modify a test so that it fails (for example, a not_null test on a column that contains nulls). 2. Run Your dbt Tests Execute your dbt tests as usual: dbt test This will run all tests and, if there are failures, Elementary will sample the failed rows and insert them into test_result_rows (by default, up to 5 rows per test failure, configurable via the test_sample_row_count variable) [see documentation](https://docs.elementary-data.com/dbt/package-models#run-results). 3. Check Your Configuration - Make sure the Elementary dbt package is installed and up to date. - If you want to increase the number of sample rows stored, set the variable in your `dbt_project.yml`: yaml vars: test_sample_row_count: 10 This will store up to 10 failed rows per test [see example](https://slack.com/archives/C02CTC89LAX/p1704277382272089). 4. dbt 1.8+ Users If you are using dbt 1.8 or above, add the following to your dbt_project.yml to ensure Elementary can override materializations: yaml flags: require_explicit_package_overrides_for_builtin_materializations: false [See more](https://slack.com/archives/C02CTC89LAX/p1734111312018389). 5. Run Elementary Models After running your tests, make sure to run the Elementary models to process and store the results: dbt run --select elementary Summary: To generate data in test_result_rows, you need failing dbt tests, the Elementary package properly configured, and to run both your tests and the Elementary models. The table will then be populated with a sample of the failed rows for each test failure. If you follow these steps and still see no data, double-check your configuration and logs for errors, especially if you are using dbt 1.8+ or a non-standard data warehouse.