Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions integration_tests/ci/test_scenarios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ additional_schema_variables:

include_databricks_sql: false
include_sqlserver: false
include_duckdb: true
include_dbt_compile: false

test_scenarios:
Expand Down
2 changes: 2 additions & 0 deletions integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ vars:
dispatch:
- macro_namespace: dbt_utils
search_order: ['spark_utils', 'dbt_utils']
- macro_namespace: fivetran_utils
search_order: ['social_media_reporting', 'fivetran_utils']

models:
+persist_docs:
Expand Down
8 changes: 8 additions & 0 deletions macros/duckdb__json_parse.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% macro duckdb__json_parse(string, string_path) %}

json_extract_string(
{{ string }},
'$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%}'
)

{% endmacro %}