Skip to content

Commit 3461d8d

Browse files
authored
Destination Snowflake: Tear down destination state after tests (#36930)
Nightly builds were failing for a while. We forgot to cleanup `airbyte_internal`.`_airbyte_destination_state` as part of teardown and that table becomes ever growing in our test workspace.
1 parent 4cf3762 commit 3461d8d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

airbyte-integrations/connectors/destination-snowflake/src/test-integration/java/io/airbyte/integrations/destination/snowflake/typing_deduping/AbstractSnowflakeTypingDedupingTest.java

+3
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ protected void teardownStreamAndNamespace(String streamNamespace, final String s
9999
// Raw table is still lowercase.
100100
StreamId.concatenateRawTableName(streamNamespace, streamName),
101101
streamNamespace.toUpperCase()));
102+
database.execute(
103+
String.format("DELETE FROM \"airbyte_internal\".\"_airbyte_destination_state\" WHERE \"name\"='%s' AND \"namespace\"='%s'", streamName,
104+
streamNamespace));
102105
}
103106

104107
@Override

0 commit comments

Comments
 (0)