Owen Agitza Jaya
05/07/2025, 3:33 AMkapa.ai
05/07/2025, 3:33 AMkapa.ai
05/07/2025, 3:34 AMOwen Agitza Jaya
05/07/2025, 4:56 AMOwen Agitza Jaya
05/07/2025, 4:56 AMkapa.ai
05/07/2025, 4:56 AMkapa.ai
05/07/2025, 4:57 AMOwen Agitza Jaya
05/07/2025, 4:59 AMkapa.ai
05/07/2025, 4:59 AMkapa.ai
05/07/2025, 4:59 AMOwen Agitza Jaya
05/07/2025, 6:42 AMkapa.ai
05/07/2025, 6:42 AMkapa.ai
05/07/2025, 6:42 AMelementary.schema_changes or elementary.schema_changes_from_baseline) on a table that has been deleted, it can indeed result in a database error. This is because the test attempts to query the table's schema, and if the table no longer exists, the underlying SQL will fail—often with a syntax or "object does not exist" error, as you observed. This behavior is confirmed in community discussions, where users encountered similar errors when running Elementary tests on deleted tables. The recommended approach in such cases is to ensure that tests are not run on tables that have been dropped, or to clean up any pending alerts or test configurations referencing those tables. For example, you can mark the relevant alerts as sent in the alerts table by filtering on the table_name and setting the alert_sent column to true [Slack discussion on deleted tables and errors](https://slack.com/archives/C02CTC89LAX/p1662029029665899). Additionally, recent updates to Elementary aim to provide more indicative error messages when a tested table or column does not exist in the warehouse, but the fundamental limitation remains: if the table is gone, the test will error out [Slack discussion on error handling for deleted tables](https://slack.com/archives/C02CTC89LAX/p1668099874659909). In summary: Yes, running schema change tests on deleted tables will result in errors, and this is expected behavior. You should remove or update tests and alerts that reference tables which no longer exist.Owen Agitza Jaya
05/07/2025, 6:57 AMkapa.ai
05/07/2025, 6:57 AMkapa.ai
05/07/2025, 6:57 AMOwen Agitza Jaya
05/07/2025, 7:17 AMkapa.ai
05/07/2025, 7:17 AMkapa.ai
05/07/2025, 7:18 AM