[ADAP-1042] Persist docs fails when a column name matches a Snowflake no-argument function #842
Closed
2 tasks done
Labels
bug
Something isn't working
Is this a new bug in dbt-snowflake?
Current Behavior
I have a model with column name
current_time
and when I set persist docs to enabled for columns, my dbt run fails. The query that adds the comment to the table is failing with error messageSQL execution internal error: Processing aborted due to error 300002:3929359486
.After investigating this further it seems any columns that share the name of a Snowflake no-argument function (ones that do not require brackets like
CURRENT_TIME
,CURRENT_DATE
) will fail with this error.This is the query dbt attempts to run but fails:
Expected Behavior
I would expect no error to occur for these column names when persist docs is enabled.
Steps To Reproduce
Relevant log output
Environment
Additional Context
Adding a comment using this alternative method works as expected for these column names:
The text was updated successfully, but these errors were encountered: