Commit f44c8cc
fix: safely re-partition objects_s during integration test
- Re-order integration test to create test data, load into `objects_s` via temporary partitions covering all values so `min`/`max` bounds queries by the user prompt succeed.
- Replace `DROP TABLE ... CASCADE` with `ALTER TABLE ... DETACH PARTITION` when dynamically re-partitioning the table to prevent the 200,000 generated test rows from being permanently deleted.
- Re-insert rows from detached parent-less partitions into the newly partitioned table before final tests assertions to ensure the state successfully migrates.
Co-authored-by: soniapi <396009+soniapi@users.noreply.github.com>1 parent 4d39e36 commit f44c8cc
1 file changed
+33
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
65 | 74 | | |
66 | 75 | | |
67 | 76 | | |
| |||
165 | 174 | | |
166 | 175 | | |
167 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
168 | 185 | | |
169 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
170 | 203 | | |
171 | 204 | | |
172 | 205 | | |
| |||
0 commit comments