Commit 1547a06
Re-enable ClickHouse in CLI tests (#2095)
* Re-enable ClickHouse in CLI tests
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
* Fix prettier formatting for warehouse-type array
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
* Add clickhouse to Seed e2e dbt project step
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
* Fix get_elementary_database_and_schema to use actual elementary schema
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
* Revert "Fix get_elementary_database_and_schema to use actual elementary schema"
This reverts commit 1fc1952.
* Fix ClickHouse column alias handling in populate_test_alerts macro
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
* Use .get() for all field accesses in populate_test_alerts to handle ClickHouse column names
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
* Revert "Use .get() for all field accesses in populate_test_alerts to handle ClickHouse column names"
This reverts commit 5a7efb8.
* Revert "Fix ClickHouse column alias handling in populate_test_alerts macro"
This reverts commit a3bef9c.
* Add debug logging to identify Undefined field in populate_test_alerts
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
* Update debug logging to use 'is defined' checks for accurate Undefined detection
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
* Add more detailed debug logging to find nested Undefined values
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
* Fix ClickHouse column alias handling with .get() fallbacks
ClickHouse returns columns with table prefix (e.g., 'failed_tests.database_name'
instead of 'database_name'). Use .get() with fallbacks to handle both naming
conventions for the affected fields:
- database_name
- schema_name
- tags
- test_params
- severity
- status
- result_rows
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
* Fix ClickHouse column name ambiguity with explicit SQL aliases
ClickHouse returns columns with table prefix when column names are ambiguous
across joined tables. The affected columns (database_name, schema_name, tags,
test_params, severity, status, result_rows) exist in both failed_tests and
tests tables.
Fix: Add explicit 'as column_name' aliases in the SQL query to force
ClickHouse to use the alias name instead of the qualified column name.
This is cleaner than using .get() fallbacks in the macro.
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
* Remove DBT_EDR_DEBUG env var (debugging complete)
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 2ea3ce0 commit 1547a06
3 files changed
Lines changed: 24 additions & 13 deletions
File tree
- .github/workflows
- elementary/monitor/dbt_project/macros/alerts/population
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
37 | 45 | | |
38 | 46 | | |
39 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
| |||
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
164 | | - | |
| 165 | + | |
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
| |||
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
141 | | - | |
| 142 | + | |
| 143 | + | |
142 | 144 | | |
143 | 145 | | |
144 | | - | |
| 146 | + | |
145 | 147 | | |
146 | 148 | | |
147 | 149 | | |
148 | 150 | | |
149 | 151 | | |
150 | 152 | | |
151 | | - | |
| 153 | + | |
152 | 154 | | |
153 | 155 | | |
154 | 156 | | |
155 | 157 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
160 | 162 | | |
161 | 163 | | |
162 | 164 | | |
| |||
0 commit comments