Skip to content

[Fusion] Redshift's helper macro render_from_context() fails because of Pythonic Jinja #369

@dataders

Description

@dataders

Fusion is failing (understandably) on this line that uses *varargs and **kwargs. with the below message. I don't even know what the context var is doing here.

{{ return(package_context[name](*varargs, **kwargs)) }}

error: dbt1501: Failed to run operation invalid operation: value of type undefined is not callable
(in :46:47)
(in dbt_packages/dbt_external_tables/macros/common/get_external_build_plan.sql:2:31)
(in dbt_packages/dbt_external_tables/macros/plugins/redshift/get_external_build_plan.sql:12:36)
(in dbt_packages/dbt_external_tables/macros/common/refresh_external_table.sql:2:31)
(in dbt_packages/dbt_external_tables/macros/plugins/redshift/refresh_external_table.sql:18:51)
(in dbt_packages/dbt_external_tables/macros/plugins/redshift/helpers/render_macro.sql:20:30)
--> :46:47
Finished 'run-operation' with 1 error in 299ms

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions