Skip to content

Commit 75fa968

Browse files
committed
add comment
1 parent c9d2a47 commit 75fa968

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

macros/edr/system/system_utils/get_config_var.sql

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,13 @@
113113

114114
{%- macro dremio__get_default_config() -%}
115115
{% set default_config = elementary.default__get_default_config() %}
116-
{% do default_config.update({
117-
'dbt_artifacts_chunk_size': 100,
118-
'cache_artifacts': false
119-
}) %}
116+
{% do default_config.update({'dbt_artifacts_chunk_size': 100}) %}
117+
118+
{# Caching does work in Dremio, but there is a race between the creation of the temp table
119+
and its usage, and it's causing failures (querying the same table 2 seconds later works).
120+
This is likely a bug in Dremio.
121+
So to be safe we disable caching in Dremio by default. #}
122+
{% do default_config.update({'cache_artifacts': false}) %}
123+
120124
{{- return(default_config) -}}
121125
{%- endmacro -%}

0 commit comments

Comments
 (0)