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
Describe the bug
Unity catalog is disabled for us and we have trouble with dbt run -s elementary. In the macro elementary/macros/edr/metadata_collection/get_columns_from_information_schema.sql, another macor is defined for databricks ,which is databricks__get_columns_from_information_schema. The if condition in this macro,
{% if target.catalog is none %}
{# Information schema is only available when using Unity Catalog. #}
{% do return(elementary.get_empty_columns_from_information_schema_table()) %}
{% endif %}
is not working properly in that if condition target.catalog is none is never met. In other words, return(elementary.get_empty_columns_from_information_schema_table()) is never executed. I know this because I made changes to rest of the macro, and changes were reflected in compiled query. To Reproduce
Steps to reproduce the behavior:
Install elementary-data following instructions
Run dbt run -s elementary
Error message "Unity Catalog is not abled on this cluster"
Expected behavior
Disabled Unity Catalog should be correctly detected. And workaround macro is run.
Screenshots
Environment (please complete the following information):
edr Version: [0.14.0]
dbt core version: [1.7.8]
dbt databricks version: [1.7.7]
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Hi @HantonMing ,
Thank you for opening this issue and sorry for such a long delay in our reply.
I'm not sure if this is still relevant to you, but actually would love to know - you mentioned the condition target.catalog is none is never met.
Do you manage to see what value does it contain? Does it contain a legitimate value even though you are not using Unity Catalog?
Describe the bug
Unity catalog is disabled for us and we have trouble with
dbt run -s elementary
. In the macro elementary/macros/edr/metadata_collection/get_columns_from_information_schema.sql, another macor is defined for databricks ,which is databricks__get_columns_from_information_schema. The if condition in this macro,is not working properly in that if condition
target.catalog is none
is never met. In other words,return(elementary.get_empty_columns_from_information_schema_table())
is never executed. I know this because I made changes to rest of the macro, and changes were reflected in compiled query.To Reproduce
Steps to reproduce the behavior:
dbt run -s elementary
Expected behavior
Disabled Unity Catalog should be correctly detected. And workaround macro is run.
Screenshots
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: