Skip to content

Commit

Permalink
Fixed loading error with ATHENA Vocabularies (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCedarPrince authored Oct 25, 2024
1 parent 5e45ab4 commit 54722d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions macros/load_data_duckdb.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

{% for n, p in file_dict.items() %}
{% do run_query("DROP TABLE IF EXISTS " ~ target_schema ~ "." ~ n.lower() ~ ";") %}
{% do run_query("CREATE TABLE IF NOT EXISTS " ~ target_schema ~ "." ~ n.lower() ~ " AS SELECT * FROM read_csv('" ~ p ~ "');") %}
{% do run_query("CREATE TABLE IF NOT EXISTS " ~ target_schema ~ "." ~ n.lower() ~ " AS SELECT * FROM read_csv('" ~ p ~ "', quote = '');") %}
{% endfor %}

{% if vocab_tables %}
Expand All @@ -28,4 +28,4 @@
{% do run_query("ALTER TABLE " ~ target_schema ~ ".procedures ALTER CODE TYPE VARCHAR;") %}
{% endif %}

{% endmacro %}
{% endmacro %}

0 comments on commit 54722d3

Please sign in to comment.