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
While implementing dbt artifacts it gives syntax error for all staging models :
SQL compilation error: syntax error line 14 at position 66 unexpected ','. syntax error line 14 at position 115 unexpected 'as'. syntax error line 14 at position 123 unexpected ')'. syntax error line 14 at position 125 unexpected 'as'.
This is due to '-' getting appended instead of || in macro generate_surrogate_key.sql
How to reproduce
Expected behaviour
It was expected to generate below statement instead select
md5(cast(coalesce(cast(command_invocation_id as TEXT), '') || '-' || coalesce(cast(node_id as TEXT), '') as TEXT)) as model_execution_id
Screenshots
Environment
Results of running dbt --version: 1.2
# Add the results here
Please paste the contents of your packages.yml file here:
Overview
While implementing dbt artifacts it gives syntax error for all staging models :
SQL compilation error: syntax error line 14 at position 66 unexpected ','. syntax error line 14 at position 115 unexpected 'as'. syntax error line 14 at position 123 unexpected ')'. syntax error line 14 at position 125 unexpected 'as'.
This is due to '-' getting appended instead of || in macro generate_surrogate_key.sql
How to reproduce
Expected behaviour
It was expected to generate below statement instead
select
md5(cast(coalesce(cast(command_invocation_id as TEXT), '') || '-' || coalesce(cast(node_id as TEXT), '') as TEXT)) as model_execution_id
Screenshots
Environment
Results of running
dbt --version
: 1.2# Add the results here
Please paste the contents of your
packages.yml
file here:packages:
version: 0.8.2
version: 0.5.0
version: 0.5.3
version: 0.5.0
revision: v0.1
The text was updated successfully, but these errors were encountered: