We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For incremental model config:
config( materialized='incremental', on_schema_change='sync_all_columns' ) }} select ...
This fails when a column type changes. Following the logic here:
dbt-adapters/dbt/include/global_project/macros/adapters/columns.sql
Line 89 in b414668
It's hard to decide what to do in this case: Here a few options I can think of:
config( materialized='incremental', on_schema_change='sync_all_columns' )
log error: column "id__dbt_alter" is of type bigint but expression is of type character
- OS: Ubuntu 20.04 - Python:3.11.6 - dbt-adapters: 1.5.0
No response
The text was updated successfully, but these errors were encountered:
Hi @nguyensinhtu - I'm curious what adapter are you using this on and what version?
Sorry, something went wrong.
No branches or pull requests
Is this a new bug?
Current Behavior
For incremental model config:
This fails when a column type changes. Following the logic here:
dbt-adapters/dbt/include/global_project/macros/adapters/columns.sql
Line 89 in b414668
in step 2, DBT is trying to copy data with an old type to a temporary column with a new type.
Expected Behavior
It's hard to decide what to do in this case:
Here a few options I can think of:
Steps To Reproduce
Relevant log output
Environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: