-
Notifications
You must be signed in to change notification settings - Fork 30
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
Empty database identifier in macro fabric_get_columns_in_relation #254
Comments
@itxffink , what is the scenario you are testing? I am surprised that relation does not contain database name |
Hi @prdpsvs , I tried to run a macro to list all the columns: {% macro find_datatypes(model) %} {{ find_datatypes('nwd.fct_orders')}} I found out, that I can overwrite the standard template in the fabric adapter with the following macro file: {% macro fabric__get_columns_in_relation(relation) -%}
{% endmacro %} |
If I want to query the columns of a relation the macro below does not contain the database but an empty pair of square brackets, which does not work for me.
original macro:
{% macro fabric__get_columns_in_relation(relation) -%}
{% set query_label = apply_label() %}
{% call statement('get_columns_in_relation', fetch_result=True) %}
{% endmacro %}
If I omit the square brackets, the macro works for the use case, where I want to get all the columns of a specific object.
The text was updated successfully, but these errors were encountered: