Skip to content

fix(duckdb): ARRAY reads and ATTACH rollback - #149

Merged
adsharma merged 1 commit into
mainfrom
fix/duckdb-144-array-145-attach-rollback
Nov 21, 2026
Merged

adsharma merged 1 commit into
mainfrom
fix/duckdb-144-array-145-attach-rollback

Conversation

@adsharma

@adsharma adsharma commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Fixes: #144
Fixes: #145

144: use ArrayVector::GetChildMutable for ARRAY vectors instead of ListVector::GetChildMutable, which read the wrong buffer and could segfault on aggregation. Parse trailing [n]/[] dimensions with rfind before STRUCT/UNION/MAP so INTEGER[2][2] and STRUCT(..)[2] resolve to nested ARRAY types. Same transactional shadow fix applied to sqlite, pg_client and adbc catalogs.

145: pass the ATTACH transaction to the main catalog for shadow node/rel entries and add Catalog::addTableEntry(Transaction*, ...) with skipLoggingToWAL (requires ladybug companion PR 1666). A failed ATTACH now rolls back its shadows instead of leaking them, and the name-clash error surfaces as already-exists rather than write-write conflict.

Issue 144: use ArrayVector::GetChildMutable for ARRAY vectors instead of
ListVector::GetChildMutable, which read the wrong buffer and could segfault
on aggregation. Parse trailing [n]/[] dimensions with rfind before
STRUCT/UNION/MAP so INTEGER[2][2] and STRUCT(..)[2] resolve to nested ARRAY
types.

fix(attach): create shadow tables in the ATTACH transaction

Issue 145: pass Transaction::Get(*context_) to the main catalog for shadow
node/rel entries (duckdb, sqlite, pg_client, adbc) and add
Catalog::addTableEntry(Transaction*, ...) with skipLoggingToWAL. A failed
ATTACH now rolls back its shadows instead of leaking them, and the
name-clash error surfaces as already-exists rather than write-write
conflict.
@adsharma
adsharma merged commit bd6823b into main Nov 21, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant