Commit 6468828
Fix error messages and detect catalog_name changes in trigger
Fixed two issues with the external_catalog_modification trigger:
1. Changed error messages to match test expectations:
- "modifying the internal catalog is currently only supported via pg_lake_iceberg tables"
- This matches the expected error format in test_iceberg_catalog.py
2. Added validation to detect catalog_name changes during UPDATE:
- Prevents changing a table from external catalog to internal catalog
- Prevents changing a table from internal catalog to external catalog
- These operations should only be done via CREATE/DROP TABLE
Fixes CI test failures in:
- test_create_in_internal_catalog
- test_create_in_external_catalog
All external write tests still pass (9/9).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent e9341e5 commit 6468828
1 file changed
Lines changed: 20 additions & 5 deletions
Lines changed: 20 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
117 | 118 | | |
118 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
119 | 136 | | |
120 | 137 | | |
121 | 138 | | |
| |||
132 | 149 | | |
133 | 150 | | |
134 | 151 | | |
135 | | - | |
136 | | - | |
| 152 | + | |
137 | 153 | | |
138 | 154 | | |
139 | 155 | | |
140 | 156 | | |
141 | 157 | | |
142 | | - | |
143 | | - | |
| 158 | + | |
144 | 159 | | |
145 | 160 | | |
146 | 161 | | |
| |||
0 commit comments