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
When the dbt_artifacts.upload_results(results) function is called, an error occurs during the JSON conversion process for artifacts. This happens specifically for a source configuration in src_schema.yml that includes a filter with a case-sensitive column name within apostrophes, as in filter: datediff('day', "_etl_loaded_at", current_timestamp) < 2. This filter is for dbt freshness checks . The presence of the apostrophe appears to disrupt the JSON parsing, resulting in a failure to upload artifacts.
How to reproduce
Define a source in src_schema.yml with a filter expression that includes a case-sensitive column name within an SQL function, for example:
Run a dbt project that includes the dbt_artifacts.upload_results(results) call in an on-run-end hook.
Observe the error during the JSON conversion process when the artifact upload is attempted.
Expected behaviour
The dbt_artifacts.upload_results(results) function should process and upload artifacts without errors, even when the src_schema.yml contains filter expressions with case-sensitive column names within apostrophes. The JSON conversion process should handle these cases seamlessly to allow for successful artifact uploads.
Screenshots
Environment
Results of running dbt --version:
Core:
- installed: 1.7.3
- latest: 1.7.8 - Update available!
Your version of dbt-core is out of date!
You can find instructions for upgrading here:
https://docs.getdbt.com/docs/installation
Plugins:
- snowflake: 1.7.1 - Update available!
At least one plugin is out of date or incompatible with dbt-core.
You can find instructions for upgrading here:
https://docs.getdbt.com/docs/installation
Please paste the contents of your packages.yml file here:
Overview
When the dbt_artifacts.upload_results(results) function is called, an error occurs during the JSON conversion process for artifacts. This happens specifically for a source configuration in src_schema.yml that includes a filter with a case-sensitive column name within apostrophes, as in filter: datediff('day', "_etl_loaded_at", current_timestamp) < 2. This filter is for dbt freshness checks . The presence of the apostrophe appears to disrupt the JSON parsing, resulting in a failure to upload artifacts.
How to reproduce
Define a source in src_schema.yml with a filter expression that includes a case-sensitive column name within an SQL function, for example:
Run a dbt project that includes the dbt_artifacts.upload_results(results) call in an on-run-end hook.
Observe the error during the JSON conversion process when the artifact upload is attempted.
Expected behaviour
The dbt_artifacts.upload_results(results) function should process and upload artifacts without errors, even when the src_schema.yml contains filter expressions with case-sensitive column names within apostrophes. The JSON conversion process should handle these cases seamlessly to allow for successful artifact uploads.
Screenshots
Environment
Results of running
dbt --version
:Please paste the contents of your
packages.yml
file here:The text was updated successfully, but these errors were encountered: