From 54722d361d532e5605b3e36390f57024ea9eaa6d Mon Sep 17 00:00:00 2001 From: "Jacob S. Zelko" Date: Fri, 25 Oct 2024 17:29:36 -0400 Subject: [PATCH] Fixed loading error with ATHENA Vocabularies (#93) --- macros/load_data_duckdb.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macros/load_data_duckdb.sql b/macros/load_data_duckdb.sql index 16c5e5b..cd111c4 100644 --- a/macros/load_data_duckdb.sql +++ b/macros/load_data_duckdb.sql @@ -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 %} @@ -28,4 +28,4 @@ {% do run_query("ALTER TABLE " ~ target_schema ~ ".procedures ALTER CODE TYPE VARCHAR;") %} {% endif %} -{% endmacro %} \ No newline at end of file +{% endmacro %}