diff --git a/posthog/temporal/tests/batch_exports/conftest.py b/posthog/temporal/tests/batch_exports/conftest.py index 28ef7aee14c6c..9fafd040b027d 100644 --- a/posthog/temporal/tests/batch_exports/conftest.py +++ b/posthog/temporal/tests/batch_exports/conftest.py @@ -39,4 +39,4 @@ async def truncate_events(clickhouse_client): This is useful if during the test setup we insert a lot of events we wish to clean-up. """ yield - await clickhouse_client.execute_query("TRUNCATE TABLE `sharded_events`") + await clickhouse_client.execute_query("TRUNCATE TABLE IF EXISTS `sharded_events`")