Is this a new bug?
Which packages are affected?
Current Behavior
When persist_docs is configured on UDFs like below:
dbt_project.yml
functions:
+persist_docs:
relation: true
columns: true
dbt tries to access the tables path instead of routines path in Bigquery and therefore the operation fails with error:
[ERROR]: Unhandled error while executing target/run/tonayya_does_bigquery/functions/is_positive_int.py
404 GET https://bigquery.googleapis.com/bigquery/v2/projects/cse-sandbox-319708/datasets/dbt_tsabzizar_dbt_tsabzizar/tables/is_positive_int?prettyPrint=false: Not found: Table cse-sandbox-319708:dbt_tsabzizar_dbt_tsabzizar.is_positive_int
UDFs are stored under routines:
Expected Behavior
If persist_docs are supposed to be supported for UDFs, then we should be sending the request to the correct path. If this is not a supported property for UDFs, then we should throw a meaningful error.
Steps To Reproduce
- Add a dummy UDF to a project with Bigquery connection
- add
persist_docs on functions in dbt_project.yml file
- run command
dbt build -s your_function
Relevant log output
Environment
- OS:
- Python:
- dbt-adapters:
- <adapter>:
Additional Context
No response
Is this a new bug?
Which packages are affected?
Current Behavior
When
persist_docsis configured on UDFs like below:dbt tries to access the
tablespath instead ofroutinespath in Bigquery and therefore the operation fails with error:UDFs are stored under
routines:Expected Behavior
If
persist_docsare supposed to be supported for UDFs, then we should be sending the request to the correct path. If this is not a supported property for UDFs, then we should throw a meaningful error.Steps To Reproduce
persist_docson functions indbt_project.ymlfiledbt build -s your_functionRelevant log output
Environment
Additional Context
No response