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 structure of an existing snapshot changes, the execution fails. There are two default macros involved that cause the failure. One is get_true_sql (v1.7.2 only), and the other one is create_columns.
The default implementation of get_true_sql delivers the keyword TRUE, which doesn't exist in Teradata.
The default implementation of create_columns performs the following alter table:
Create a snapshot and add a new column to the snapshot.
Expected behavior
The new column is added without error.
Screenshots and log output
The output of dbt --version:
Core:
- installed: 1.8.3
- latest: 1.8.6 - 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:
- teradata: 1.8.0 - Up to date!
The operating system you're using:
Windows 11
The output of python --version:
Python 3.11.3
The text was updated successfully, but these errors were encountered:
Describe the bug
When the structure of an existing snapshot changes, the execution fails. There are two default macros involved that cause the failure. One is
get_true_sql
(v1.7.2 only), and the other one iscreate_columns
.The default implementation of
get_true_sql
delivers the keywordTRUE
, which doesn't exist in Teradata.The default implementation of
create_columns
performs the following alter table:Causing following error:
In Teradata, the alter table should be performed without the
column
keyword.To solve the problem, we overwriten the macros with the following code.
Steps To Reproduce
Create a snapshot and add a new column to the snapshot.
Expected behavior
The new column is added without error.
Screenshots and log output
The output of
dbt --version
:The operating system you're using:
Windows 11
The output of
python --version
:Python 3.11.3
The text was updated successfully, but these errors were encountered: