Skip to content

Commit

Permalink
Update post_ci_cleanup macro for spark
Browse files Browse the repository at this point in the history
We need to update in order not to delete the schema in spark, as the schema plays the role of the database
  • Loading branch information
ilias1111 authored Oct 11, 2024
1 parent dd6e63f commit 8369f02
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions macros/utils/post_ci_cleanup.sql
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,7 @@ You may obtain a copy of the Snowplow Personal and Academic License Version 1.0
{% else %}
{% endif %}

{# Step 3: Drop the schema #}
{% set drop_schema_sql = "DROP SCHEMA IF EXISTS " ~ schema ~ ";" %}
{% do adapter.execute(drop_schema_sql) %}
{# For spark we shouldn't delete the schema as this has the role of the database #}
{% endfor %}
{% else %}
{{ log("No schemas found matching pattern: " ~ schema_pattern, info=True) }}
Expand Down

0 comments on commit 8369f02

Please sign in to comment.