George Myrianthous
03/07/2024, 10:25 AM[2024-03-07, 05:47:12 UTC] {pod_manager.py:395} INFO - [base] [0m05:47:12 Compilation Error in model dbt_exposures (models/edr/dbt_artifacts/dbt_exposures.sql)
[2024-03-07, 05:47:12 UTC] {pod_manager.py:395} INFO - [base]
[2024-03-07, 05:47:12 UTC] {pod_manager.py:395} INFO - [base] The source and target schemas on this incremental model are out of sync!
[2024-03-07, 05:47:12 UTC] {pod_manager.py:395} INFO - [base] They can be reconciled in several ways:
[2024-03-07, 05:47:12 UTC] {pod_manager.py:395} INFO - [base] - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.
[2024-03-07, 05:47:12 UTC] {pod_manager.py:395} INFO - [base] - Re-run the incremental model with `full_refresh: True` to update the target schema.
[2024-03-07, 05:47:12 UTC] {pod_manager.py:395} INFO - [base] - update the schema manually and re-run the process.
[2024-03-07, 05:47:12 UTC] {pod_manager.py:395} INFO - [base]
[2024-03-07, 05:47:12 UTC] {pod_manager.py:395} INFO - [base] Additional troubleshooting context:
[2024-03-07, 05:47:12 UTC] {pod_manager.py:395} INFO - [base] Source columns not in target: [<BigQueryColumn depends_on_columns (STRING, NULLABLE)>]
[2024-03-07, 05:47:12 UTC] {pod_manager.py:395} INFO - [base] Target columns not in source: []
[2024-03-07, 05:47:12 UTC] {pod_manager.py:395} INFO - [base] New column types: []
[2024-03-07, 05:47:12 UTC] {pod_manager.py:395} INFO - [base]
[2024-03-07, 05:47:12 UTC] {pod_manager.py:395} INFO - [base]
[2024-03-07, 05:47:12 UTC] {pod_manager.py:395} INFO - [base] > in macro process_schema_changes (macros/materializations/models/incremental/on_schema_change.sql)
[2024-03-07, 05:47:12 UTC] {pod_manager.py:395} INFO - [base] > called by macro materialization_incremental_bigquery (macros/materializations/incremental.sql)
[2024-03-07, 05:47:12 UTC] {pod_manager.py:395} INFO - [base] > called by macro materialization_incremental_bigquery (macros/edr/materializations/model/incremental.sql)
[2024-03-07, 05:47:12 UTC] {pod_manager.py:395} INFO - [base] > called by model dbt_exposures (models/edr/dbt_artifacts/dbt_exposures.sql)
Can someone advise? This happened a few more times in the past when we upgraded elementary versions so I am wondering if it’s something you need to consider when releasing new versions. I understand that breaking changes cannot be avoided, but at the same time, these kind of issues should be handled in a proper way.Maayan Salom
03/07/2024, 2:41 PMdbt run --select elementary when you upgrade the CLI?Maayan Salom
03/07/2024, 2:42 PMGeorge Myrianthous
03/07/2024, 2:44 PMdbt run --select elementaryMaayan Salom
03/07/2024, 2:45 PMdbt run --select elementary against the same target that edr runs against?George Myrianthous
03/07/2024, 2:49 PMdbt run --select elementaryMaayan Salom
03/07/2024, 2:49 PMGeorge Myrianthous
03/07/2024, 2:50 PMMaayan Salom
03/07/2024, 2:50 PMdbt deps + dbt run --select elementaryGeorge Myrianthous
03/07/2024, 2:50 PMMaayan Salom
03/07/2024, 2:50 PMGeorge Myrianthous
03/07/2024, 2:50 PM