Commit f1b70aa
fix: add Trino and Spark adapter support for create_table_as and full_name_split (#948)
* fix: add Trino and Spark adapter support for create_table_as and full_name_split
- Add trino__full_name_split: Trino arrays are 1-based, not 0-based like the default
- Add trino__edr_get_create_table_as_sql: bypass dbt-trino's create_table_as which
accesses model.config (fails outside model materialization context)
- Add spark__edr_get_create_table_as_sql: use temporary view for temp tables
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
* fix: use SQL standard TRIM syntax for Trino full_name_split
Trino requires TRIM(BOTH '"' FROM value) instead of TRIM(value, '"')
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 06a56ee commit f1b70aa
2 files changed
Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
148 | 163 | | |
149 | 164 | | |
150 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
0 commit comments