Commit ab21363
fix: set explicit incremental_strategy='append' for test_result_rows.sql (#918)
* fix: remove incremental_strategy from test_result_rows.sql
The model no longer has a unique_key (removed in f5c062d), so using
merge incremental strategy causes Redshift to fail with:
'MERGE statement with a single WHEN clause is not enabled.'
Removing incremental_strategy lets dbt use the default append strategy
which is appropriate for this append-only table.
Fixes CORE-279
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
* ci: update Python version to 3.10 for tests
The elementary-data package now requires Python >=3.10, so update
the test workflow to use Python 3.10 instead of 3.9.
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
* fix: explicitly set incremental_strategy='append' for test_result_rows.sql
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
* fix: add get_append_only_incremental_strategy macro for append-only tables
- Creates new macro that returns 'append' for Athena and None for other adapters
- Uses this macro in test_result_rows.sql instead of hardcoded 'append'
- Fixes Athena's default insert_overwrite strategy issue while allowing other
adapters to use their defaults
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
* fix: update get_append_only_incremental_strategy to return append for all except BigQuery
- Default now returns 'append' for all adapters
- BigQuery-specific override returns 'merge' (BigQuery doesn't support append)
- Removed Athena-specific override (now covered by default)
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Itamar Hartstein <haritamar@gmail.com>1 parent b8ebc80 commit ab21363
3 files changed
Lines changed: 14 additions & 2 deletions
File tree
- .github/workflows
- macros/utils/cross_db_utils
- models/edr/run_results
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments