Yes, if you set test_sample_row_count: 0 in your dbt_project.yml, Elementary should not include any sample rows of failed records in the test_result_rows table or in the result_rows column of elementary_test_results. This effectively disables the storage and display of failed row samples in reports and the UI. This configuration is specifically mentioned as the way to opt out of collecting and displaying failed row samples for privacy or other reasons [Security and Privacy Docs](
https://docs.elementary-data.com/cloud/general/security-and-privacy#what-information-does-elementary-collect%3F). However, please note that in some older versions, there were reports that setting test_sample_row_count: 0 did not fully disable the sampling mechanism, and a fix was planned for this behavior. If you are using a recent version (0.7.3 or later), this configuration should work as expected [Slack: test_sample_row_count and version 0.7.3](
https://slack.com/archives/C02CTC89LAX/p1678288875135819) [Slack: Disabling samples](
https://slack.com/archives/C02CTC89LAX/p1672963194187039). If you still see sample rows after setting this variable, make sure you are using a supported Elementary version and that the variable is placed directly under vars: in your dbt_project.yml, not under models or other sections [Slack: Correct placement of test_sample_row_count](
https://slack.com/archives/C02CTC89LAX/p1704277382272089).