Commit c96af09
Fix iceberg detection in clone when source schema is not cached
load_cached_relation returns None during cross-schema clone operations
because the source schema is not in the adapter cache. Fall back to
querying Snowflake directly via SHOW TABLES to detect iceberg format.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 693e212 commit c96af09
File tree
1 file changed
+18
-2
lines changed- dbt-snowflake/src/dbt/include/snowflake/macros/materializations
1 file changed
+18
-2
lines changedLines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
0 commit comments