Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Macro error #16

Closed
fithisux opened this issue Apr 1, 2024 · 2 comments
Closed

Macro error #16

fithisux opened this issue Apr 1, 2024 · 2 comments

Comments

@fithisux
Copy link

fithisux commented Apr 1, 2024

Hi, I try to port the demo to work with my TPC-H from a local duckdb installation (I do not have a snowflake account and I am not interested).

I have setup duckdb (like in my other dbt project).

But I get

No macro named 'get_escape_characters' found within namespace: 'automate_dv'

Can you help me?

@fithisux
Copy link
Author

fithisux commented Apr 1, 2024

On a second note I see that duckdb does not have code generation. But I try to add this. And even though I have some additions for the macros

e.g.

{%- macro duckdb__cast_date(column_str, as_string=false, alias=none) -%}

    {%- if as_string -%}
    '{{ column_str }}'::date
    {%- else -%}
    cast({{ column_str }} as string)::date
    {%- endif -%}

    {%- if alias %} AS {{ alias }} {%- endif %}

{%- endmacro -%}

it still "prefers" the snowflake version.

How can I change this?

@fithisux fithisux closed this as completed Apr 1, 2024
@fithisux
Copy link
Author

fithisux commented Apr 1, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant