Commit fe7aab6
fix(controlplane): force DuckLake transpile mode in multitenant remote backend (#550)
Sessions on the multitenant control plane are always backed by DuckLake
workers, but the per-org metadata store comes from configstore so the
global server.Config.DuckLake.MetadataStore stays empty. The transpiler
was gated on that field alone, so the DDL transform never registered
in MTCP — meaning Fivetran's ALTER TABLE ... ADD PRIMARY KEY (and
ON CONFLICT, DuckLake-aware pg_catalog/info_schema rewrites) flowed
straight through to the worker, which rejects them with
"Adding indexes or constraints is not supported in DuckLake".
Add server.Config.AlwaysDuckLake and set it from the remote-backend
control plane. Tests cover the bare ADD PRIMARY KEY / UNIQUE / FK
forms (the existing test only exercised the named-constraint path).
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent b715b38 commit fe7aab6
4 files changed
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
378 | 387 | | |
379 | 388 | | |
380 | 389 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
228 | 235 | | |
229 | 236 | | |
230 | 237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
886 | 886 | | |
887 | 887 | | |
888 | 888 | | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
889 | 892 | | |
890 | 893 | | |
891 | 894 | | |
| |||
0 commit comments