You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this a regression in a recent version of dbt-core?
I believe this is a regression in dbt-core functionality
I have searched the existing issues, and I could not find an existing issue for this regression
Current Behavior
In dbt 1.8.9 it seems like the behavior of node.external.partitions has changed. It used to return a list of dicts, but now it seems to return a list of json strings.
This seems to be causing problems for dbt-external-tables when trying to create external tables with partitions defined.
I'm using this macro to compare the behaviors:
{% macro get_partitions() -%}
{% set source_nodes = graph.sources.values() if graph.sources else [] %}
{% for node in source_nodes %}
{% if node.external %}
{% if node.external.partitions %}
{{print(node.external.partitions)}}
{% endif %}
{% endif %}
{% endfor %}
{%- endmacro %}
Is this a regression in a recent version of dbt-core?
Current Behavior
In dbt 1.8.9 it seems like the behavior of node.external.partitions has changed. It used to return a list of dicts, but now it seems to return a list of json strings.
This seems to be causing problems for dbt-external-tables when trying to create external tables with partitions defined.
I'm using this macro to compare the behaviors:
dbt 1.8.8:
dbt 1.8.9:
Expected/Previous Behavior
I expect node.external.partitions to be a list of dicts so that the values can be accessed by looping the list and addressing with i.e.
partition.name
Steps To Reproduce
testtable.yml
with external and partition set. I.e.:dbt run-operation get_partitions
Relevant log output
No response
Environment
Which database adapter are you using with dbt?
snowflake
Additional Context
No response
The text was updated successfully, but these errors were encountered: